Commit Graph

730 Commits

Author SHA1 Message Date
Athijegannathan Sundararajan
389c23df3c Merge 2013-09-11 22:53:03 +05:30
Athijegannathan Sundararajan
75b2463cde 8024644: PluggableJSObject.iteratingJSObjectTest fails with jdk8-tl build
Reviewed-by: jlaskey, hannesw
2013-09-11 22:51:34 +05:30
Athijegannathan Sundararajan
f2db7a5c1c 8024615: Refactor ScriptObjectMirror and JSObject to support external JSObject implementations
Reviewed-by: jlaskey, hannesw
2013-09-11 20:49:28 +05:30
Attila Szegedi
ab77668a9a 8024130: We no longer need slots for temporaries in self-assign indices
Reviewed-by: jlaskey, lagergren
2013-09-11 10:27:25 +02:00
James Laskey
12d6f7df9b 8024539: FX Libraries update missing file
Reviewed-by: sundar
2013-09-10 14:21:28 -03:00
James Laskey
126ef9ca4e 8024397: Nashorn FX Libraries need to be finalized
Reviewed-by: sundar, hannesw, lagergren
2013-09-09 13:35:35 -03:00
Athijegannathan Sundararajan
1392897ef0 Merge 2013-09-09 20:16:49 +05:30
Athijegannathan Sundararajan
0b67400c6f 8024180: Incorrect handling of expression and parent scope in 'with' statements
Reviewed-by: jlaskey, hannesw
2013-09-09 20:10:41 +05:30
Lana Steuck
7d25c8f021 Merge 2013-09-06 14:20:58 -07:00
Athijegannathan Sundararajan
6311d28032 8024255: When a keyword is used as object property name, the property can not be deleted
Reviewed-by: jlaskey, lagergren
2013-09-05 21:17:06 +05:30
Christine Lu
115b15c1fc Added tag jdk8-b106 for changeset 6ba209076a37 2013-09-05 02:46:24 -07:00
Athijegannathan Sundararajan
747b74ce5e 8024174: Setting __proto__ property in Object literal should be supported
Reviewed-by: jlaskey, lagergren
2013-09-04 19:58:16 +05:30
Athijegannathan Sundararajan
1268ef5430 8024120: Setting __proto__ to null removes the __proto__ property
Reviewed-by: lagergren, attila
2013-09-04 14:29:07 +05:30
Lana Steuck
acaf7ca35c Merge 2013-08-29 16:34:31 -07:00
Christine Lu
696e9f594f Added tag jdk8-b105 for changeset df7b5446debc 2013-08-29 09:42:13 -07:00
Athijegannathan Sundararajan
13568cb462 Merge 2013-08-27 19:26:48 +05:30
Athijegannathan Sundararajan
f5d9acd819 8023784: Object.prototype.toString should contain the class name for all instances
Reviewed-by: lagergren, jlaskey
2013-08-27 18:57:50 +05:30
Attila Szegedi
a9796aeea0 8023780: Gracefully handle @CS methods while binding bean properties
Reviewed-by: jlaskey, lagergren, sundar
2013-08-27 13:17:00 +02:00
Athijegannathan Sundararajan
359034825f 8022773: ScriptEngineTest.printManyTest fails
Reviewed-by: lagergren, attila
2013-08-27 15:54:45 +05:30
Lana Steuck
243a756a0c Merge 2013-08-26 14:54:25 -07:00
James Laskey
da5fb6dfae 8023721: Simplify eval in DebuggerSupport
Reviewed-by: sundar, lagergren, hannesw
2013-08-26 15:33:40 -03:00
Hannes Wallnöfer
c10f9ffaeb 8023650: Regexp m flag does not recognize CRNL or CR
Reviewed-by: jlaskey, lagergren
2013-08-26 15:59:41 +02:00
Lana Steuck
76dbd59f19 Merge 2013-08-23 14:18:06 -07:00
James Laskey
0863203de8 8019987: String trimRight and trimLeft could be defined
Reviewed-by: sundar
2013-08-23 12:20:19 -03:00
Marcus Lagergren
6d31b3a15f 8023454: Updated DEVELOPER_README and command line flags, ensuring that undocumented flags that aren't guaranteed to work (disabled by default) and that are work in progress show up with an EXPERIMENTAL tag
Reviewed-by: attila, jlaskey
2013-08-23 15:46:09 +02:00
James Laskey
06e6e351d4 8020946: TokenType#toString returned null
Reviewed-by: hannesw, lagergren
2013-08-23 09:56:25 -03:00
Marcus Lagergren
25bbe574dc 8023550: -d option was broken for any dir but '.'. Fixed Java warnings
Reviewed-by: jlaskey, sundar
2013-08-23 14:16:16 +02:00
Athijegannathan Sundararajan
1e1c0d3b80 Merge 2013-08-23 16:44:02 +05:30
Attila Szegedi
3a14dde3d2 8023630: Implement Java.super() as the preferred way to call super methods
Reviewed-by: jlaskey, lagergren, sundar
2013-08-23 13:10:45 +02:00
Marcus Lagergren
8940235d91 Merge 2013-08-23 12:44:01 +02:00
Marcus Lagergren
8e1d44b484 8023453: --log=attr did not unindent identNodes
Reviewed-by: attila, jlaskey
2013-08-23 12:43:32 +02:00
Athijegannathan Sundararajan
6119c39830 8023631: engine.js init script should be loaded into every global instance created by engines
Reviewed-by: attila, hannesw
2013-08-23 16:10:37 +05:30
Athijegannathan Sundararajan
7b5f6c66a5 8023560: Arbitrary javax.script.Bindings objects as ENGINE_SCOPE objects are not handled as expected
Reviewed-by: jlaskey, lagergren, hannesw
2013-08-22 22:32:16 +05:30
James Laskey
5d8a44e119 8023228: Debugger information gather is too slow
Reviewed-by: sundar, lagergren
2013-08-22 13:51:24 -03:00
Christine Lu
a758468eee Added tag jdk8-b104 for changeset 9b5ad625745e 2013-08-22 09:10:25 -07:00
Hannes Wallnöfer
863bbb911b 8023531: new RegExp('').toString() should return '/(?:)/'
Reviewed-by: sundar, jlaskey
2013-08-22 17:23:50 +02:00
Athijegannathan Sundararajan
cc6216ae2e 8023551: Mirror functions can not be invoked using invokeMethod, invokeFunction
Reviewed-by: attila, jlaskey, lagergren
2013-08-22 18:46:26 +05:30
Athijegannathan Sundararajan
2bb4ab07ca 8023368: Instance __proto__ property should exist and be writable
Reviewed-by: attila, hannesw
2013-08-21 17:28:53 +05:30
Attila Szegedi
00099d7de2 8022903: Enhance for-in and for-each for Lists and Maps
Reviewed-by: lagergren, sundar
2013-08-21 13:39:40 +02:00
Attila Szegedi
6db516232b 8023373: allow super invocation for adapters
Reviewed-by: lagergren, sundar
2013-08-21 13:39:09 +02:00
Lana Steuck
dd6c7270b6 Merge 2013-08-20 17:46:45 -07:00
Athijegannathan Sundararajan
23c1598214 Merge 2013-08-19 19:37:29 +05:30
Athijegannathan Sundararajan
67ca223959 8023210: jjs tools should support a mode where it will load few command line scripts and then entering into interactive shell
Reviewed-by: hannesw, attila, lagergren, jlaskey
2013-08-19 17:16:54 +05:30
Marcus Lagergren
9de0661d63 8023017: SUB missing for widest op == number for BinaryNode
Reviewed-by: sundar, jlaskey
2013-08-16 18:51:53 +02:00
Hannes Wallnöfer
c5193485ad 8019985: Date.parse("2000-01-01T00:00:00.Z") should return NaN
Reviewed-by: sundar, jlaskey
2013-08-16 13:42:44 +02:00
Athijegannathan Sundararajan
2f90b28014 8020355: bind on built-in constructors don't use bound argument values
Reviewed-by: lagergren, hannesw
2013-08-16 15:04:36 +05:30
Christine Lu
db0ec61ffd Added tag jdk8-b103 for changeset 1f4e22f16147 2013-08-15 09:26:02 -07:00
Athijegannathan Sundararajan
a28b8a61dc 8023026: Array.prototype iterator functions like forEach, reduce should work for Java arrays, lists
Reviewed-by: jlaskey, lagergren
2013-08-14 20:51:53 +05:30
Lana Steuck
48a4d23548 Merge 2013-08-13 18:34:12 -07:00
Lana Steuck
0081af7ad7 Merge 2013-08-13 10:34:41 -07:00
Michael Horowitz
bf29c2ec49 8022676: Confusing error message checking instanceof non-class
Reviewed-by: jlaskey, sundar
2013-08-12 18:00:17 -03:00
Athijegannathan Sundararajan
7e85e9c196 8022598: Object.getPrototypeOf should return null for host objects rather than throwing TypeError
Reviewed-by: lagergren, jlaskey, attila, hannesw
2013-08-12 18:16:28 +05:30
Athijegannathan Sundararajan
cb2ec81051 8022615: [nightly] Two nashorn print tests fail in nightly builds on Windows
Reviewed-by: lagergren, jlaskey
2013-08-12 17:08:01 +05:30
Hannes Wallnöfer
76e9329e16 8022731: NativeArguments has wrong implementation of isMapped()
Reviewed-by: lagergren, jlaskey
2013-08-12 13:31:43 +02:00
Athijegannathan Sundararajan
42d8f28181 8022614: Please exclude test test/script/trusted/JDK-8020809.js from Nashorn code coverage run
Reviewed-by: jlaskey, lagergren
2013-08-12 16:52:32 +05:30
Attila Szegedi
71bd48d8e7 8022789: Revisit doPrivileged blocks in Dynalink
Reviewed-by: lagergren, sundar
2013-08-12 12:46:01 +02:00
Athijegannathan Sundararajan
ec9506c0fe 8022782: publicLookup access failures in ScriptObject, ScriptFunction and ScriptFunction
Reviewed-by: lagergren, attila, hannesw
2013-08-12 14:43:53 +05:30
Athijegannathan Sundararajan
8ee7468a8c 8022707: Revisit all doPrivileged blocks
Reviewed-by: jlaskey, hannesw
2013-08-09 20:48:44 +05:30
Christine Lu
a4ad7e3be8 Added tag jdk8-b102 for changeset c6f119e1fb1f 2013-08-08 10:10:54 -07:00
Jim Laskey
8662010454 Merge 2013-08-08 11:20:14 -03:00
Athijegannathan Sundararajan
77e477eaea 8022524: Memory leaks in nashorn sources and tests found by jhat analysis
Reviewed-by: attila, hannesw
2013-08-08 16:38:32 +05:30
Attila Szegedi
65cc3fdc8a 8022509: Various Dynalink security enhancements
Reviewed-by: jlaskey, hannesw
2013-08-07 16:38:44 +02:00
Lana Steuck
630afb40c1 Merge 2013-08-06 17:01:56 -07:00
Lana Steuck
30f9a71516 Merge 2013-08-06 10:02:35 -07:00
Athijegannathan Sundararajan
2efc2b56a0 Merge 2013-08-06 13:10:40 +05:30
Christine Lu
d7f1d887ba Added tag jdk8-b101 for changeset 55745edff2b0 2013-08-01 04:56:29 -07:00
Hannes Wallnöfer
24adb234a8 8020132: Big object literal with numerical keys exceeds method size
Reviewed-by: lagergren, sundar
2013-08-01 12:23:38 +02:00
Athijegannathan Sundararajan
820cebb6aa Merge 2013-07-29 21:56:40 +05:30
Athijegannathan Sundararajan
c9efbba43f 8012792: print function defined in engine.js does not handle multiple arguments
Reviewed-by: hannesw
2013-07-29 18:07:20 +05:30
Athijegannathan Sundararajan
95f14173b8 Merge 2013-07-29 10:28:03 +05:30
Lana Steuck
219047ad65 Merge 2013-07-26 14:08:51 -07:00
Athijegannathan Sundararajan
010a7705a4 8021571: @fork tests should use VM options passed from project.properties
Reviewed-by: lagergren, hannesw, jlaskey
2013-07-26 20:10:47 +05:30
Michael Horowitz
716045c405 8021321: Two runsunspider tests fail after updating sunspider to 1.0
Reviewed-by: jlaskey, sundar
2013-07-26 09:17:54 -03:00
Hannes Wallnöfer
77a2559593 8020719: Run tests with reduced splitter threshold
Reviewed-by: lagergren, sundar, jlaskey
2013-07-26 13:50:52 +02:00
Athijegannathan Sundararajan
fdb4922746 8021361: ClassCastException:.ScriptObjectMirror -> ScriptObject when getInterface called on object from different ScriptContext
Reviewed-by: jlaskey, attila
2013-07-25 20:10:48 +05:30
Christine Lu
fb82e775a7 Added tag jdk8-b100 for changeset 12baff1ad7a0 2013-07-25 03:19:44 -07:00
Hannes Wallnöfer
55483aa548 8021244: Inconsistent stackmap with splitter threshold set very low
Reviewed-by: sundar, lagergren
2013-07-25 11:56:12 +02:00
Athijegannathan Sundararajan
90fc477ac3 8021252: invokeMethod throws NoSuchMethodException when script object is from different script context
Reviewed-by: lagergren, hannesw
2013-07-25 14:05:03 +05:30
Athijegannathan Sundararajan
97f5b61172 8021294: --verify-code option results in AnalyzerException
Reviewed-by: hannesw, jlaskey
2013-07-24 21:01:22 +05:30
Athijegannathan Sundararajan
67126cb8fb 8021262: Make nashorn access checks consistent with underlying dynalink
Reviewed-by: jlaskey, lagergren, attila
2013-07-24 20:28:03 +05:30
Jim Laskey
27a09545ef Merge 2013-07-24 08:25:04 -03:00
Hannes Wallnöfer
cf28b19245 8020718: RETURN symbol has wrong type in split functions
Reviewed-by: lagergren, attila
2013-07-24 13:16:34 +02:00
Attila Szegedi
85d68499be 8021246: Fix regression for 8021189
Reviewed-by: lagergren, sundar
2013-07-24 12:48:09 +02:00
Attila Szegedi
91e5fbd2e0 8021189: Prevent access to constructors of restricted classes
Reviewed-by: lagergren, sundar
2013-07-24 11:13:24 +02:00
Attila Szegedi
947610257d 8021129: Use public lookup again
Reviewed-by: lagergren, sundar
2013-07-23 18:28:58 +02:00
Athijegannathan Sundararajan
bb55b5cb23 Merge 2013-07-23 21:51:23 +05:30
Athijegannathan Sundararajan
34d2bae0b0 8021164: REGRESSION: test262 failures after JDK-8021122
Reviewed-by: jlaskey, hannesw
2013-07-23 21:45:27 +05:30
James Laskey
6983b4e9e3 8021130: Comments need to be tokens
Reviewed-by: lagergren, attila
2013-07-23 12:00:29 -03:00
Athijegannathan Sundararajan
e2975f94c6 8021122: Not all callables are handled for toString and other function valued properties
Reviewed-by: attila, hannesw, jlaskey
2013-07-23 18:17:25 +05:30
Lana Steuck
9167785782 Merge 2013-07-22 17:40:26 -07:00
Attila Szegedi
566991e98e 8020820: Limit access to static members of reflective classes
Reviewed-by: jlaskey, sundar
2013-07-18 16:47:45 +02:00
Attila Szegedi
3a0f1e0653 8020809: Java adapter should not allow overriding of caller sensitive methods
Reviewed-by: jlaskey, sundar
2013-07-18 16:22:25 +02:00
Athijegannathan Sundararajan
21be9aded6 8020731: Revisit checkPermission calls in Context class
Reviewed-by: attila, hannesw
2013-07-18 18:08:26 +05:30
Christine Lu
bd5783e38b Added tag jdk8-b99 for changeset d104c72ebc8a 2013-07-18 03:39:39 -07:00
Hannes Wallnöfer
c4bea48ac1 8020356: ClassCastException Undefined->Scope on spiltter class generated for a large switch statement
Reviewed-by: jlaskey, attila
2013-07-17 18:20:40 +02:00
James Laskey
2c90f36ca0 8020596: Initialization of white space strings in scanner should be done with \u strings
Reviewed-by: attila, hannesw
2013-07-17 11:53:09 -03:00
Lana Steuck
a2dcb875cd Merge 2013-07-17 00:36:48 -07:00
Konstantin Shefov
3485b7bc5c 8017585: Exclude two failing tests from Nashorn CC run
Reviewed-by: jlaskey, sundar, attila
2013-07-16 17:40:15 -03:00
Attila Szegedi
f6a5b67f14 8015356: array concatenation should skip empty elements
Reviewed-by: jlaskey, sundar
2013-07-16 17:03:30 +02:00
Hannes Wallnöfer
06394dedc7 8010821: [findbugs] Some classes in jdk.nashorn.internal.runtime.regexp expose mutable objects
Reviewed-by: attila, jlaskey, sundar
2013-07-16 16:12:26 +02:00
Attila Szegedi
e85e4fb319 8020357: throw RangeError for too large NativeArrayBuffer size
Reviewed-by: jlaskey, hannesw, sundar
2013-07-16 15:28:33 +02:00
Athijegannathan Sundararajan
6891593360 Merge 2013-07-16 09:54:04 +05:30
Hannes Wallnöfer
6055fea677 8020358: Array(0xfffffff) throws OutOfMemoryError
Reviewed-by: jlaskey, sundar
2013-07-15 18:32:23 +02:00
Attila Szegedi
a4b42a9a25 8011210: fix reporting of call site locations; print them on -tcs=miss
Reviewed-by: jlaskey, hannesw
2013-07-15 16:58:23 +02:00
Hannes Wallnöfer
9d4ac8b057 8020283: Don't use exceptions for widening of ArrayData
Reviewed-by: jlaskey, attila
2013-07-15 16:35:38 +02:00
Attila Szegedi
84e8d48fb4 8020508: Enforce reflection access restrictions on Object.bindProperties
Reviewed-by: jlaskey, sundar
2013-07-15 16:31:49 +02:00
Hannes Wallnöfer
40b8f5d48c 8020354: Object literal property initialization is not done in source order
Reviewed-by: sundar, jlaskey
2013-07-15 15:51:06 +02:00
Attila Szegedi
e11a9b1d07 8020324: Implement Object.bindProperties(target, source) for beans
Reviewed-by: hannesw, sundar
2013-07-15 12:33:48 +02:00
Athijegannathan Sundararajan
ed18e742ce Merge 2013-07-12 20:13:43 +05:30
Athijegannathan Sundararajan
62ca9dfc18 Merge 2013-07-12 20:12:29 +05:30
Athijegannathan Sundararajan
b8081def9f 8020463: Input argument array wrapping in loadWithNewGlobal is wrong
Reviewed-by: attila, jlaskey
2013-07-12 20:06:41 +05:30
Attila Szegedi
533439278e 8019822: Duplicate name and signature in finally block
Reviewed-by: jlaskey, sundar
2013-07-12 11:58:42 +02:00
Athijegannathan Sundararajan
eaed291ba6 8020223: ClassCastException: String can not be casted to ScriptFunction
Reviewed-by: attila, lagergren
2013-07-12 15:27:16 +05:30
Athijegannathan Sundararajan
4972fea316 8020437: Wrong handling of line numbers with multiline string literals
Reviewed-by: attila, lagergren
2013-07-12 15:01:33 +05:30
Attila Szegedi
8603660852 8020125: PrintVisitor wasn't printing bodies of FunctionNode within UnaryNode
Reviewed-by: jlaskey, lagergren
2013-07-11 22:01:55 +02:00
Athijegannathan Sundararajan
380db28df8 8012191: noSuchProperty can't cope with vararg functions
Reviewed-by: jlaskey, attila
2013-07-11 22:58:37 +05:30
David Katleman
65c7578ee8 Added tag jdk8-b98 for changeset 7954f50477a0 2013-07-11 10:13:59 -07:00
Attila Szegedi
4eb5c9e3a4 8013925: Remove symbol fields from nodes that don't need them
Reviewed-by: jlaskey, lagergren
2013-07-11 18:33:33 +02:00
Athijegannathan Sundararajan
80f5124f23 8020380: __noSuchProperty__ defined in mozilla_compat.js script should be non-enumerable
Reviewed-by: jlaskey, hannesw, attila
2013-07-11 18:23:13 +05:30
Athijegannathan Sundararajan
f0144d9d93 8020325: static property does not work on accessible, public classes
Reviewed-by: attila, hannesw, lagergren
2013-07-11 16:34:55 +05:30
Athijegannathan Sundararajan
48c4649f17 8020276: interface checks in Invocable.getInterface implementation
Reviewed-by: jlaskey, hannesw, attila
2013-07-10 19:08:04 +05:30
Hannes Wallnöfer
652b020905 8016681: regex capture behaves differently than on V8
Reviewed-by: lagergren, sundar
2013-07-10 10:54:19 +02:00
Athijegannathan Sundararajan
41c47ddf53 8020224: LinkageError: attempted duplicate class definition when --loader-per-compiler=false
Reviewed-by: hannesw
2013-07-10 13:25:07 +05:30
Marcus Lagergren
cfbe70e223 8020124: In the case of an eval switch, we might need explicit conversions of the tag store, as it was not known in the surrounding environment
Reviewed-by: sundar, jlaskey
2013-07-09 15:56:59 +02:00
Athijegannathan Sundararajan
8854b24a30 8014785: Ability to extend global instance by binding properties of another object
Reviewed-by: attila, hannesw, jlaskey, lagergren
2013-07-09 17:37:46 +05:30
Attila Szegedi
3e0c71b6c1 8009758: reactivate the 8006529 test
Reviewed-by: jlaskey, sundar
2013-07-09 13:57:24 +02:00
Hannes Wallnöfer
4e011cfb8c 8019963: empty char range in regex
Reviewed-by: jlaskey, sundar
2013-07-08 19:34:55 +02:00
Athijegannathan Sundararajan
f505b24c9b Merge 2013-07-08 18:43:41 +05:30
Athijegannathan Sundararajan
1e0c0dc73e 8020035: nashorn jdk buildfile BuildNashorn.gmk still renamed jdk.nashorn.internal.objects package
Reviewed-by: attila, jlaskey
2013-07-08 18:36:10 +05:30
Athijegannathan Sundararajan
0a7fda8dbe 8020015: shared PropertyMaps should not be used without duplication
Reviewed-by: hannesw, attila
2013-07-08 16:33:50 +05:30
Lana Steuck
a68e62073a Merge 2013-07-05 11:05:50 -07:00
Marcus Lagergren
fa6c5ef45f 8019983: Void returns combined with return with expression picked the wrong return type
Reviewed-by: sundar, jlaskey
2013-07-05 19:35:39 +02:00
Attila Szegedi
dbe76b28bd 8019819: scope symbol didn't get a slot in certain cases
Reviewed-by: hannesw, jlaskey, lagergren, sundar
2013-07-05 15:10:47 +02:00
Hannes Wallnöfer
8f092c733a 8017084: Use spill properties for large object literals
Reviewed-by: lagergren, sundar
2013-07-05 14:36:54 +02:00
Athijegannathan Sundararajan
1853f28ab3 8019947: inherited property invalidation does not work with two globals in same context
Reviewed-by: jlaskey, lagergren, hannesw, attila
2013-07-05 14:38:04 +05:30
Marcus Lagergren
7426b8de5c Merge 2013-07-04 17:28:04 +02:00
Marcus Lagergren
0807ef3638 8019821: allInteger switches were confused by boolean cases, as they are a narrower type than int
Reviewed-by: sundar, hannesw
2013-07-04 17:27:33 +02:00
Attila Szegedi
f495ca639c 8019809: return after break incorrectly sets the block as terminal
Reviewed-by: jlaskey, lagergren
2013-07-04 14:10:18 +02:00
Christine Lu
277da6e517 Added tag jdk8-b97 for changeset f9f7fb94f515 2013-07-04 01:01:10 -07:00
James Laskey
8ebb701354 8011629: Object.defineProperty performance issue
Reviewed-by: sundar, attila
2013-07-03 13:41:18 -03:00
Attila Szegedi
75501c6993 8017768: allow dot as inner class name separator for Java.type
Reviewed-by: jlaskey, sundar
2013-07-03 18:10:12 +02:00
Athijegannathan Sundararajan
1e6e9dc0c6 8019814: Add regression test for passing cases
Reviewed-by: jlaskey, lagergren
2013-07-03 19:20:29 +05:30
Marcus Lagergren
047d1b732f 8019811: Static calls - self referential functions needed a return type conversion if they were specialized, as they can't use the same mechanism as indy calls
Reviewed-by: sundar, jlaskey
2013-07-03 15:46:03 +02:00
Athijegannathan Sundararajan
72a7034a41 8019805: for each (init; test; modify) is invalid
Reviewed-by: lagergren, jlaskey
2013-07-03 17:26:31 +05:30
Marcus Lagergren
62fb002570 8019585: Sometimes a var declaration using itself in its init wasn't declared as canBeUndefined, causing erroneous bytecode
Reviewed-by: sundar, attila
2013-07-03 13:03:36 +02:00
Attila Szegedi
92bcfea39a 8010946: AccessControl.doPrivileged is broken when called from js script
Reviewed-by: jlaskey, sundar
2013-07-03 12:39:28 +02:00
Athijegannathan Sundararajan
6dfb638284 8019791: ~ is a unary operator
Reviewed-by: hannesw
2013-07-03 14:08:00 +05:30
Athijegannathan Sundararajan
5ccee02c35 8019783: typeof does not work properly for java methods and foreign objects
Reviewed-by: hannesw
2013-07-03 13:13:17 +05:30
Athijegannathan Sundararajan
22b6014ba6 8019629: void operator should always evaluate to undefined
Reviewed-by: jlaskey
2013-07-03 00:08:45 +05:30
Athijegannathan Sundararajan
f76da2a387 Merge 2013-07-02 18:39:41 +05:30
Marcus Lagergren
53a84f9d41 Merge 2013-07-02 15:01:38 +02:00
Marcus Lagergren
8ff9291b05 8017082: Long array literals were slightly broken
Reviewed-by: sundar, attila
2013-07-02 14:50:39 +02:00
Athijegannathan Sundararajan
f05a001210 8019553: NPE on illegal l-value for increment and decrement
Reviewed-by: jlaskey, attila, lagergren
2013-07-02 18:00:15 +05:30
Marcus Lagergren
518a9bf3d0 8016667: Wrong bytecode when testing/setting due to null check shortcut checking against primitive too
Reviewed-by: jlaskey, sundar
2013-07-02 13:50:19 +02:00
Eugene Drobitko
e8a1440b91 8019580: Build Script Change for Nashorn promotion testing
Reviewed-by: jlaskey
2013-07-02 07:45:16 -03:00
Athijegannathan Sundararajan
f743fb3852 8019508: Comma handling in object literal parsing is wrong
Reviewed-by: hannesw
2013-07-01 23:36:40 +05:30
Athijegannathan Sundararajan
c6b0514112 8019488: switch on literals result in NoSuchMethodError or VerifyError
Reviewed-by: hannesw
2013-07-01 19:52:07 +05:30
Athijegannathan Sundararajan
135ccaceef 8019482: Number("0x0.0p0") should evaluate to NaN
Reviewed-by: lagergren
2013-07-01 17:21:09 +05:30
Athijegannathan Sundararajan
1a074a8b66 8019478: Object.prototype.toString.call(/a/.exec("a")) === "[object Array]" should be true
Reviewed-by: hannesw
2013-07-01 14:15:07 +05:30
Athijegannathan Sundararajan
1a0fc187f4 8019473: Parser issues related to functions and blocks
Reviewed-by: lagergren
2013-07-01 12:38:01 +05:30
Lana Steuck
365be2d998 Merge 2013-06-28 19:48:01 -07:00
Athijegannathan Sundararajan
0eb7f23c99 8019365: Error stack format
Reviewed-by: hannesw
2013-06-28 19:36:26 +05:30
David Katleman
73d6b7cc52 Added tag jdk8-b96 for changeset 472d8f5f0d9b 2013-06-27 13:40:38 -07:00
Athijegannathan Sundararajan
1e5b5c1269 Merge 2013-06-27 13:47:20 +05:30
Athijegannathan Sundararajan
a089899deb 8019226: line number not generated for first statement if it is on the same function declaration line
Reviewed-by: jlaskey, hannesw
2013-06-27 13:24:50 +05:30
James Laskey
1e7b1f36e4 8019175: Simplify ScriptObject.modifyOwnProperty
Reviewed-by: hannesw
2013-06-26 12:38:35 -03:00
Athijegannathan Sundararajan
ee8b3bd823 8014781: support Error.captureStackTrace
Reviewed-by: jlaskey, hannesw
2013-06-26 19:42:17 +05:30
Hannes Wallnöfer
70383eb20a 8019157: Avoid calling ScriptObject.setProto() if possible
Reviewed-by: jlaskey, sundar
2013-06-26 15:40:52 +02:00
James Laskey
e628bb4979 8008458: Strict functions dont share property map
Reviewed-by: sundar, hannesw
2013-06-26 08:36:53 -03:00
Athijegannathan Sundararajan
f4695eca85 8017950: error.stack should be a string rather than an array
Reviewed-by: hannesw, jlaskey
2013-06-26 16:36:13 +05:30
Athijegannathan Sundararajan
249d0ae5b4 8015969: Needs to enforce and document that global "context" and "engine" can't be modified when running via jsr223
Reviewed-by: hannesw, jlaskey
2013-06-25 17:31:19 +05:30
Lana Steuck
637d0ec23d Merge 2013-06-24 14:26:54 -07:00
Athijegannathan Sundararajan
02e0b5c3f1 8015959: Can't call foreign constructor
Reviewed-by: jlaskey, hannesw
2013-06-24 19:06:01 +05:30
James Laskey
2aad633d9b 8017448: JDK-8010732.js.EXPECTED truncated
Reviewed-by: sundar
2013-06-22 10:12:19 -03:00
James Laskey
86ff93e544 8010732: BigDecimal, BigInteger and Long handling in nashorn
Reviewed-by: sundar
2013-06-21 14:34:00 -03:00
Athijegannathan Sundararajan
995f6390e8 Merge 2013-06-21 17:33:05 +05:30
Athijegannathan Sundararajan
6f8f3be8c3 8017260: adjust lookup code in objects.* classes
Reviewed-by: hannesw, jlaskey
2013-06-21 16:55:18 +05:30
David Katleman
a2ff843552 Added tag jdk8-b95 for changeset aee867cdeb80 2013-06-20 10:18:01 -07:00
Athijegannathan Sundararajan
20710c0c6e Merge 2013-06-20 17:34:42 +05:30
Athijegannathan Sundararajan
9e05183200 8017046: Cannot assign undefined to a function argument if the function uses arguments object
Reviewed-by: hannesw
2013-06-20 13:45:38 +05:30
Athijegannathan Sundararajan
1d927dd28e 8015347: Parsing issue with decodeURIComponent
Reviewed-by: jlaskey, hannesw
2013-06-19 21:07:59 +05:30
James Laskey
d643a2fcd7 8010697: DeletedArrayFilter seems to leak memory
Reviewed-by: hannesw, sundar
2013-06-19 09:10:49 -03:00
Athijegannathan Sundararajan
93241c0ecb 8012698: [nashorn] tests fail to run with agentvm or samevm
Reviewed-by: hannesw, jlaskey
2013-06-18 18:43:05 +05:30
Athijegannathan Sundararajan
5fc2366646 Merge 2013-06-18 13:52:37 +05:30
Athijegannathan Sundararajan
8f55a0b00b 8008915: URLReader constructor should allow specifying encoding
Reviewed-by: hannesw, lagergren
2013-06-18 13:45:03 +05:30
Athijegannathan Sundararajan
70cc4e755b Merge 2013-06-18 13:25:24 +05:30
Athijegannathan Sundararajan
135319a5f0 8016550: nashorn.option.no.syntax.extensions has the wrong default
Reviewed-by: hannesw, lagergren
2013-06-17 13:56:05 +05:30
Lana Steuck
6bb945ef39 Merge 2013-06-16 22:38:17 -07:00
Athijegannathan Sundararajan
835f3c4de0 8016618: script mirror object access should be improved
Reviewed-by: jlaskey, lagergren
2013-06-14 21:16:14 +05:30
Marcus Lagergren
f74c3ecd82 8016235: Use in catch block that may not have been executed in try block caused illegal byte code to be generated
Reviewed-by: jlaskey, hannesw
2013-06-14 13:53:40 +02:00
Hannes Wallnöfer
2904cada12 8016542: String.prototype.replace called with function argument should not replace $ patterns
Reviewed-by: lagergren, jlaskey
2013-06-13 20:50:24 +02:00
David Katleman
e2613d3b41 Added tag jdk8-b94 for changeset ac5976df1b9c 2013-06-13 09:49:27 -07:00
Hannes Wallnöfer
f2751c93e8 8016528: Hex code from escape() should be padded
Reviewed-by: jlaskey, lagergren
2013-06-13 15:26:49 +02:00
Hannes Wallnöfer
bd1ee81a66 8016522: Numeric literal must not be followed by IdentifierStart
Reviewed-by: lagergren, sundar
2013-06-13 14:02:43 +02:00
Hannes Wallnöfer
96b4d172c0 8016518: Parsing of octal string escapes is broken
Reviewed-by: sundar, lagergren
2013-06-13 12:52:09 +02:00
Athijegannathan Sundararajan
6a09a3934e 8015355: Array.prototype functions don't honour non-writable length and / or index properties
Reviewed-by: lagergren, hannesw
2013-06-13 16:08:35 +05:30
Hannes Wallnöfer
0f3e8001de 8011893: JS Object builtin prototype is not thread safe
Reviewed-by: sundar, jlaskey
2013-06-12 16:41:38 +02:00
James Laskey
11462f8b0e 8016453: loadWithNewGlobal does not allow apply operation
Reviewed-by: hannesw, sundar
2013-06-12 11:22:06 -03:00
Hannes Wallnöfer
526f21a95e 8015379: PropertyMap.addProperty() is slow
Reviewed-by: attila, jlaskey
2013-06-11 17:50:10 +02:00
Athijegannathan Sundararajan
0886052a85 Merge 2013-06-11 13:12:35 +05:30
Athijegannathan Sundararajan
83aedc7fdd 8015357: a = []; a[0x7fffffff]=1; a.sort()[0] should evaluate to 1 instead of undefined
Reviewed-by: hannesw, lagergren
2013-06-11 13:09:43 +05:30
Lana Steuck
e5baf01f42 Merge 2013-06-10 17:04:30 -07:00
Athijegannathan Sundararajan
be9816a81e 8016239: loadWithNewGlobal should support user supplied arguments from the caller
Reviewed-by: lagergren, attila, jlaskey
2013-06-10 19:54:07 +05:30
Marcus Lagergren
2d2e7fe029 8016226: backing out test without third party license approval
Reviewed-by: attila, sundar
2013-06-10 13:27:07 +02:00
Marcus Lagergren
ce8819512f 8015892: canBeUndefined too conservative for some use before declaration cases
Reviewed-by: attila, hannesw
2013-06-10 13:21:29 +02:00
Hannes Wallnöfer
2bc5557936 8012291: NativeArray is inconsistent in using long for length and index in some places and int for the same in other places
Reviewed-by: lagergren, jlaskey
2013-06-07 17:44:25 +02:00
Christine Lu
f80e242127 Added tag jdk8-b93 for changeset 0fc814e0feae 2013-06-06 20:48:44 -07:00
Athijegannathan Sundararajan
769aac6d4a 8015346: JSON parsing issues with escaped strings, octal, decimal numbers
Reviewed-by: hannesw, jlaskey
2013-06-06 21:41:20 +05:30
Jim Laskey
b5ed9b26dc Merge 2013-06-05 12:54:21 -03:00
James Laskey
6b7b9e67e2 8015910: Nashorn JavaFX includes are out of sync with JavaFX repo
Reviewed-by: sundar
2013-06-05 12:41:09 -03:00
James Laskey
a0707f358d 8015911: $EXEC does not handle large outputs
Reviewed-by: sundar, attila
2013-06-05 10:32:50 -03:00
Hannes Wallnöfer
008916124b 8015350: Array.prototype.reduceRight issue with large length and index
Reviewed-by: attila, sundar, lagergren
2013-06-05 12:44:24 +02:00
Attila Szegedi
03ee3a979c 8015961: Several small code-gardening fixes
Reviewed-by: lagergren, sundar
2013-06-05 12:17:10 +02:00
Attila Szegedi
c5540744e7 8015955: ObjectNode.elements should be stronger typed
Reviewed-by: lagergren, sundar
2013-06-05 10:44:32 +02:00
Athijegannathan Sundararajan
424252851f Merge 2013-06-05 13:33:33 +05:30
Athijegannathan Sundararajan
1e63ac571c 8015945: loadWithNewGlobal return value has to be properly wrapped
Reviewed-by: lagergren, hannesw
2013-06-05 12:08:49 +05:30
Athijegannathan Sundararajan
7ee2adb4d7 8015830: Javascript mapping of ScriptEngine bindings does not expose keys
Reviewed-by: jlaskey, lagergren
2013-06-04 22:31:48 +05:30
Athijegannathan Sundararajan
5817f439ab 8015855: test/script/basic/JDK-8012164.js fails on Windows
Reviewed-by: hannesw, lagergren, jlaskey
2013-06-04 17:33:14 +05:30
Lana Steuck
9bd2647140 Merge 2013-06-03 23:24:36 -07:00
Lana Steuck
6643acc6d2 Merge 2013-06-03 16:10:24 -07:00
James Laskey
fcf3353ddf 8015814: loadWithNewGlobal needs to wrap createGlobal in AccessController.doPrivileged
Reviewed-by: sundar
2013-06-03 12:57:53 -03:00
James Laskey
b73369b1fe 8015796: Race condition in RuntimeCallsites
Reviewed-by: lagergren, attila
2013-06-03 11:16:33 -03:00
James Laskey
b7ee1a873e 8015741: Need a global.load function that starts with a new global scope
Reviewed-by: sundar, lagergren
2013-06-03 08:34:29 -03:00
Athijegannathan Sundararajan
49c5af63c9 8015345: Function("}),print('test'),({") should throw SyntaxError
Reviewed-by: lagergren, hannesw, jlaskey
2013-06-03 15:58:14 +05:30
James Laskey
4cfdae2e46 8015727: Thread safe print function
Reviewed-by: sundar
2013-05-31 13:04:55 -03:00
Athijegannathan Sundararajan
a48b38238f 8012164: Error.stack needs trimming
Reviewed-by: lagergren, jlaskey
2013-05-31 17:39:12 +05:30
Attila Szegedi
c6404425ec 8015673: Type for :e symbol is wrong
Reviewed-by: jlaskey, lagergren
2013-05-31 12:58:02 +02:00
Attila Szegedi
102a06fdef 8015674: CodeGenerator.initSymbols mutates a list
Reviewed-by: jlaskey, lagergren
2013-05-31 12:57:44 +02:00
Attila Szegedi
9617ee41ca 8015684: FieldObjectCreator.putField ignores getValueType
Reviewed-by: jlaskey, lagergren
2013-05-31 12:57:25 +02:00
Attila Szegedi
8bcbbe70de 8015693: reduce NodeLiteralNode to NullLiteralNode
Reviewed-by: jlaskey, lagergren
2013-05-31 12:56:56 +02:00
David Katleman
403f5cc7b3 Added tag jdk8-b92 for changeset 3ed2867af3bf 2013-05-30 10:58:35 -07:00
Athijegannathan Sundararajan
91a299799e 8015353: Date.parse illegal string parsing issues
Reviewed-by: jlaskey, lagergren
2013-05-30 16:49:46 +05:30
Lana Steuck
44b754933b Merge 2013-05-29 16:59:55 -07:00
James Laskey
a3f6ca8aed 8015636: Add more typed arrays code coverage tests
Reviewed-by: sundar
2013-05-29 16:23:50 -03:00
Athijegannathan Sundararajan
4e5a976adf 8015349: "abc".lastIndexOf("a",-1) should evaluate to 0 and not -1
Reviewed-by: lagergren, attila, jlaskey
2013-05-29 21:27:10 +05:30
Marcus Lagergren
14cc2ba534 8011023: Math round didn't conform to ECMAScript 5 spec
Reviewed-by: jlaskey, attila
2013-05-29 14:08:00 +02:00
Athijegannathan Sundararajan
993430afb0 8005979: A lot of tests are named "runTest" in reports
Reviewed-by: jlaskey
2013-05-29 15:41:07 +05:30
Athijegannathan Sundararajan
d2583c8515 8015459: Octane test run fails on Turkish locale
Reviewed-by: lagergren, attila
2013-05-28 16:37:11 +05:30
Marcus Lagergren
d1cfaae2c6 8015447: Octane harness fixes for rhino and entire test runs: ant octane, ant octane-v8, ant octane-rhino
Reviewed-by: sundar, jlaskey
2013-05-27 17:57:07 +02:00
Athijegannathan Sundararajan
bca9af88da 8015352: "i".toUpperCase() => currently returns "İ", but should be "I" (with Turkish locale)
Reviewed-by: jlaskey, lagergren
2013-05-27 20:41:34 +05:30
Marcus Lagergren
1dfb4bf18e Merge 2013-05-27 13:12:11 +02:00
Marcus Lagergren
a34fd412c5 8014219: Make the run-octane harness more deterministic by not measuring elapsed time every iteration. Also got rid of most of the run logic in base.js and call benchmarks directly for the same purpose
Reviewed-by: jlaskey, attila
2013-05-27 13:11:13 +02:00
Hannes Wallnöfer
6e76fe0cf2 8015348: RegExp("[") results in StackOverflowError
Reviewed-by: sundar, attila
2013-05-27 12:26:39 +02:00
Athijegannathan Sundararajan
5bf7dac8d7 8015351: Nashorn shell does not start with Turkish locale
Reviewed-by: jlaskey
2013-05-24 23:27:52 +05:30
Athijegannathan Sundararajan
f86162c90c 8015354: JSON.parse should not use [[Put]] but use [[DefineOwnProperty]] instead
Reviewed-by: lagergren, hannesw
2013-05-24 18:39:25 +05:30
Hannes Wallnöfer
cdf1276490 8011630: JSON parsing performance issue
Reviewed-by: lagergren, sundar
2013-05-24 13:54:18 +02:00
David Katleman
97932395dc Added tag jdk8-b91 for changeset 7d6fffdd46a9 2013-05-23 10:47:58 -07:00
Marcus Lagergren
3111019493 8012522: Clean up lexical contexts - split out stack based functionality in CodeGenerator and generify NodeVisitors based on their LexicalContext type to avoid casts
Reviewed-by: attila, jlaskey
2013-05-23 15:51:08 +02:00
Jim Laskey
b0e8a8ad47 Merge 2013-05-23 09:49:03 -03:00
Attila Szegedi
75c3e853b4 8015278: Revert accidental changes to build.xml
Reviewed-by: jlaskey, lagergren
2013-05-23 13:36:49 +02:00