/js/src/jit-test/tests/jaeger/recompile/bug658777.js

http://github.com/zpao/v8monkey · JavaScript · 11 lines · 11 code · 0 blank · 0 comment · 1 complexity · e3d448db26ebd7d30aa0146b0b3366c8 MD5 · raw file

  1. function Employee(name, dept) this.name = name || "";
  2. function WorkerBee(name, dept, projs) {
  3. this.base = Employee
  4. this.base(name, dept)
  5. }
  6. function Engineer(name, projs, machine) {
  7. this.base = WorkerBee
  8. this.base(name, "engineering", projs)
  9. __proto__["a" + constructor] = 1
  10. }
  11. new Engineer;