nashorn/test/script/basic/JDK-8015959.js.EXPECTED
author thartmann
Mon, 02 Jun 2014 08:07:29 +0200
changeset 24923 9631f7d691dc
parent 18614 addca7a10167
permissions -rw-r--r--
8034812: remove IDX_INIT macro hack in Node class Summary: The IDX_INIT macro used by Node::Node(...) to retrieve the Compile object is removed and replaced by a call to Compile::current(). The Node constructor, new operator and all calls to it are adapted accordingly. Reviewed-by: kvn, jrose, iveresov, goetz
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18614
addca7a10167 8015959: Can't call foreign constructor
sundar
parents:
diff changeset
     1
check with loadWithNewGlobal
addca7a10167 8015959: Can't call foreign constructor
sundar
parents:
diff changeset
     2
obj.x 344
addca7a10167 8015959: Can't call foreign constructor
sundar
parents:
diff changeset
     3
obj.y 12
addca7a10167 8015959: Can't call foreign constructor
sundar
parents:
diff changeset
     4
obj instanceof global.Point? true
addca7a10167 8015959: Can't call foreign constructor
sundar
parents:
diff changeset
     5
p.x 343
addca7a10167 8015959: Can't call foreign constructor
sundar
parents:
diff changeset
     6
p.y 54
addca7a10167 8015959: Can't call foreign constructor
sundar
parents:
diff changeset
     7
p instanceof P? true
addca7a10167 8015959: Can't call foreign constructor
sundar
parents:
diff changeset
     8
check with script engine
addca7a10167 8015959: Can't call foreign constructor
sundar
parents:
diff changeset
     9
obj.x 344
addca7a10167 8015959: Can't call foreign constructor
sundar
parents:
diff changeset
    10
obj.y 12
addca7a10167 8015959: Can't call foreign constructor
sundar
parents:
diff changeset
    11
obj instanceof global.Point? true
addca7a10167 8015959: Can't call foreign constructor
sundar
parents:
diff changeset
    12
p.x 343
addca7a10167 8015959: Can't call foreign constructor
sundar
parents:
diff changeset
    13
p.y 54
addca7a10167 8015959: Can't call foreign constructor
sundar
parents:
diff changeset
    14
p instanceof P? true