aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsundar <none@none>2013-03-06 22:38:18 +0530
committersundar <none@none>2013-03-06 22:38:18 +0530
commite5e3ec702d09e19e38c78b6792732ce89e580d0a (patch)
tree5592d251b7f721dab3e19f0af8f6c266adac4c60 /src
parent386077c171ad5e8b16ef8fba3e173f00f19652a3 (diff)
downloadjdk8u_nashorn-e5e3ec702d09e19e38c78b6792732ce89e580d0a.tar.gz
8009553: Object.create(Array.prototype) doesn't respect reset length
Reviewed-by: jlaskey, lagergren
Diffstat (limited to 'src')
-rw-r--r--src/jdk/nashorn/internal/objects/Global.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jdk/nashorn/internal/objects/Global.java b/src/jdk/nashorn/internal/objects/Global.java
index 9b277e37..7de45a91 100644
--- a/src/jdk/nashorn/internal/objects/Global.java
+++ b/src/jdk/nashorn/internal/objects/Global.java
@@ -1385,7 +1385,7 @@ public final class Global extends ScriptObject implements GlobalObject, Scope {
// add Array.prototype.length
final ScriptObject arrayPrototype = getArrayPrototype();
- arrayPrototype.addOwnProperty("length", Attribute.NON_ENUMERABLE_CONSTANT, 0.0);
+ arrayPrototype.addOwnProperty("length", Attribute.NOT_ENUMERABLE|Attribute.NOT_CONFIGURABLE, 0.0);
this.DEFAULT_DATE = new NativeDate(Double.NaN);