Commit Graph

843 Commits

Author SHA1 Message Date
Hannes Wallnöfer
ffab346e43 8068972: Array.splice should follow the ES6 specification
Reviewed-by: mhaupt, jlaskey
2016-07-26 15:56:35 +02:00
Michael Haupt
ec5ad88851 8142969: Nashorn logging API requires testing
Reviewed-by: sundar, mhaupt
2016-07-21 10:40:05 +02:00
Athijegannathan Sundararajan
4597649209 8149929: Nashorn Parser API needs to be updated for ES6
Reviewed-by: mhaupt, hannesw
2016-07-12 21:18:13 +05:30
Tim Bell
08a72f8286 8160505: Automated test runs fail in nashorn because TEST_IMAGE_DIR is set by jib
Reviewed-by: erikj, sundar
2016-06-29 07:35:59 -07:00
Hannes Wallnöfer
4f3b48809e 8073653: Secondary heredoc eating wrong lines
Reviewed-by: mhaupt, jlaskey
2016-06-24 14:46:45 +02:00
Hannes Wallnöfer
939f1f7308 8137240: Negative lookahead in RegEx breaks backreference
Reviewed-by: mhaupt
2016-06-24 12:39:42 +02:00
Hannes Wallnöfer
d172b7b70b 8159977: typeof operator does not see lexical bindings declared in other scripts
Reviewed-by: sundar
2016-06-22 16:30:41 +02:00
Hannes Wallnöfer
1f71896acb 8156614: Lazy parsing of ES6 shorthand method syntax is broken
Reviewed-by: sundar, mhaupt
2016-06-20 12:21:51 +02:00
Hannes Wallnöfer
acd4bf8777 8150219: ReferenceError in 1.8.0_72
Reviewed-by: attila, sundar
2016-06-20 11:44:29 +02:00
Athijegannathan Sundararajan
2c1f125385 8158467: AccessControlException is thrown on public Java class access if "script app loader" is set to null
Reviewed-by: mhaupt, hannesw
2016-06-02 14:56:20 +05:30
Athijegannathan Sundararajan
1f0c44c1c4 8157819: TypeError when a java.util.Comparator object is invoked as a function
Reviewed-by: mhaupt, forax, hannesw
2016-05-25 19:25:57 +05:30
Athijegannathan Sundararajan
883dc41e42 8157680: Callback parameter of any JS builtin implementation should accept any Callable
Reviewed-by: hannesw, mhaupt
2016-05-25 15:14:37 +05:30
Staffan Larsen
2baa671d45 8157605: Can't set both CONCURRENCY and EXTRA_JTREG_OPTIONS when running tests
Reviewed-by: tbell, erikj
2016-05-24 12:15:02 +02:00
Michael Haupt
11a849f973 8157444: exclude jjs shebang handling test from runs
Reviewed-by: sundar, hannesw, jlaskey
2016-05-20 16:02:36 +02:00
Hannes Wallnöfer
165edba622 8066229: Fuzzing bug: Can't find scope depth
Reviewed-by: sundar
2016-05-18 18:44:44 +02:00
Michael Haupt
4ad196ec4f 8157250: BeanLinker assumes fixed array type linkage
Reviewed-by: attila, sundar
2016-05-18 17:37:34 +02:00
Athijegannathan Sundararajan
dfcb34c132 8157241: Remove javac warnings of Nashorn "ant clean test"
Reviewed-by: mhaupt, hannesw
2016-05-18 20:17:48 +05:30
Athijegannathan Sundararajan
2479973df8 8157160: JSON.stringify does not work on ScriptObjectMirror objects
Reviewed-by: hannesw, mhaupt
2016-05-18 14:08:38 +05:30
Hannes Wallnöfer
aa5b0068ac 8156714: Parsing issue with automatic semicolon insertion
Reviewed-by: jlaskey, sundar
2016-05-13 18:38:15 +02:00
Hannes Wallnöfer
96e6ae9274 8156896: Script stack trace should display function names
Reviewed-by: attila, sundar
2016-05-13 14:30:54 +02:00
Athijegannathan Sundararajan
945ba5a918 8156820: Nashorn nightly test failure after fix for 8156738
Reviewed-by: hannesw, mhaupt
2016-05-12 13:07:21 +05:30
Attila Szegedi
860e71a134 8156738: Use StackWalker for DynamicLinker.getLinkedCallSiteLocation
Reviewed-by: hannesw, sundar
2016-05-11 19:24:29 +02:00
Staffan Larsen
1de3636e0f 8156658: Common way to run jtreg tests
Reviewed-by: erikj, dsamersoff
2016-05-11 11:05:28 +02:00
Athijegannathan Sundararajan
9f4a84d825 8156665: ES6 for..of should work on Java Iterables and Java arrays
Reviewed-by: attila, hannesw
2016-05-10 22:26:51 +05:30
Athijegannathan Sundararajan
7294fd831a 8156492: ClassFormatError thrown when arrow function is used
Reviewed-by: jlaskey
2016-05-09 10:48:10 +05:30
Athijegannathan Sundararajan
89cdc7ca82 8150731: Nashorn JSObject linker should be exposed as a service provider
Reviewed-by: jlaskey, hannesw
2016-05-06 20:27:20 +05:30
Joe Darcy
8d5eac16b3 8156040: Nashorn tests still failing after latest Jigsaw merge
Reviewed-by: sundar
2016-05-04 10:42:41 -07:00
Hannes Wallnöfer
edd7a01d4b 8144711: (x) => x + 1 causes Assertion failure instead of SyntaxError
Reviewed-by: mhaupt, sundar
2016-05-04 13:39:41 +02:00
Alan Bateman
985a2b23f9 Merge 2016-05-03 10:39:00 +01:00
Alan Bateman
6fe64604e7 8154956: Module system implementation refresh (4/2016)
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Reviewed-by: alanb, mchung, chegar, redestad
2016-05-03 09:11:31 +01:00
Andreas Woess
0f84fadba6 8155025: 0.001.toFixed(2) should return "0.00" not "0"
Reviewed-by: jlaskey, hannesw
2016-04-28 10:42:33 +02:00
Andreas Woess
5881148f01 8134503: support ES6 parsing in Nashorn
Reviewed-by: jlaskey, sundar, mhaupt
2016-04-27 15:50:33 +02:00
Michael Haupt
8aae21d35a 8137149: add tests for issues closed during Nashorn issue cleanup
Reviewed-by: jlaskey, sundar
2016-04-11 18:10:30 +02:00
Hannes Wallnöfer
d50a34f94f 8151700: Add support for ES6 for-of
Reviewed-by: attila, sundar
2016-03-24 11:43:48 +01:00
Chris Hegarty
30266d79fb Merge 2016-03-22 15:26:07 +00:00
Hannes Wallnöfer
1503e09bb0 8151811: Const declarations do not work in for..in loops
Reviewed-by: attila, lagergren
2016-03-22 14:26:20 +01:00
Hannes Wallnöfer
4948ac6654 8151810: for-in iteration does not provide per-iteration scope
Reviewed-by: attila, lagergren
2016-03-22 14:23:16 +01:00
Chris Hegarty
072178cc9c Merge 2016-03-22 10:52:12 +00:00
Chris Hegarty
62a318ede2 Merge 2016-03-22 10:43:23 +00:00
Srinivas Dama
48be0d0b0d 8147613: enable jjs tests on Windows
Reviewed-by: lagergren, mhaupt
2016-03-21 12:38:23 +01:00
Hannes Wallnöfer
913b65ce9d 8151809: ES6 Map/Set insertion with existing keys changes iteration order
Reviewed-by: lagergren, mhaupt
2016-03-21 11:50:23 +01:00
Alan Bateman
9a9e272b1d 8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282

Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Reviewed-by: mhaupt, hannesw
2016-03-17 19:04:35 +00:00
Attila Szegedi
e8fb7e0b2c 8150218: Autoconversion SAM adapters sometimes don't get privileges
Reviewed-by: mhaupt, sundar
2016-03-15 16:02:00 +01:00
Srinivas Dama
a261b38d27 8138906: [TEST_BUG] Test test/script/trusted/JDK-8087292.js intermittently fails
Reviewed-by: hannesw, mhaupt
2016-03-11 11:35:20 +01:00
Michael Haupt
3b675d58d4 8151518: relax test requirements to reduce dependency on directory contents
Reviewed-by: hannesw, sundar
2016-03-09 15:15:29 +01:00
Michael Haupt
e53b5a35be 8151291: $EXEC yields "unknown command" on Cygwin
Reviewed-by: jlaskey, hannesw, sdama
2016-03-09 13:24:01 +01:00
Michael Haupt
762fc4fca7 8150814: correct package declaration in Nashorn test
Reviewed-by: sundar
2016-02-29 09:49:46 +01:00
Athijegannathan Sundararajan
451cd91ea9 8148379: jdk.nashorn.api.scripting spec. adjustments, clarifications
Reviewed-by: hannesw, mhaupt
2016-02-25 13:56:23 +05:30
Michael Haupt
18677d77f6 8148140: arguments are handled differently in apply for JS functions and AbstractJSObjects
Reviewed-by: hannesw, sundar
2016-02-16 15:34:27 +01:00
Hannes Wallnöfer
1e80d261e3 8147558: Add support for ES6 collections
Reviewed-by: attila, mhaupt
2016-02-15 17:02:32 +01:00
Jim Laskey
b55ad227cb 8141209: $EXEC should allow streaming
Reviewed-by: sundar
2016-02-10 11:18:02 -04:00
Michael Haupt
ae0daf5c8b 8149334: JSON.parse(JSON.stringify([])).push(10) creates an array containing two elements
Reviewed-by: jlaskey, sundar
2016-02-08 17:43:02 +01:00
Athijegannathan Sundararajan
cedd845b27 8148926: Call site profiling fails on braces-wrapped anonymous function
Reviewed-by: jlaskey, hannesw
2016-02-04 17:42:46 +05:30
Srinivas Dama
f651deea03 8147591: Revisit Collection.toArray(new T[size]) calls in nashorn and dynalink code
Reviewed-by: hannesw, mhaupt, sundar
2016-01-28 11:20:44 +01:00
Attila Szegedi
495414b40c 8133299: Nashorn Java adapters should not early bind to functions
Reviewed-by: hannesw, lagergren, sundar
2016-01-23 11:50:24 +01:00
Hannes Wallnöfer
80b266507c 8148040: jjs -fx test does not exit
Reviewed-by: mhaupt, sundar
2016-01-22 17:01:41 +01:00
Hannes Wallnöfer
fdfdf19e75 8147845: Varargs Array functions still leaking longs
Reviewed-by: mhaupt, sundar
2016-01-21 16:31:27 +01:00
Srinivas Dama
a5d096be2e 8144113: enable jjs testing
Reviewed-by: mhaupt, sundar
2016-01-20 09:56:29 +01:00
Michael Haupt
56fb28f292 8145305: fix Nashorn shebang handling on Cygwin
Reviewed-by: hannesw, sundar
2016-01-18 11:31:43 +01:00
Attila Szegedi
df1606c088 8144919: Implement missing member handler for BeansLinker
Reviewed-by: lagergren, mhaupt, sundar
2016-01-14 13:24:03 +01:00
Michael Haupt
1689985910 8036977: Make process singleton options to be context wide
The bug was fixed in an earlier change. This change contributes a test.

Reviewed-by: hannesw, sundar
2016-01-14 10:55:26 +01:00
Hannes Wallnöfer
bfa98d042c 8147008: Nashorn primitive linker should handle ES6 symbols
Reviewed-by: attila, sundar
2016-01-13 19:34:13 +01:00
Hannes Wallnöfer
dd9c62130f 8143896: java.lang.Long is implicitly converted to double
Reviewed-by: mhaupt, jlaskey
2016-01-12 16:30:10 +01:00
Hannes Wallnöfer
ff26874c25 8146888: Wrong license headers in test files
Reviewed-by: mhaupt, jlaskey
2016-01-12 15:38:07 +01:00
Athijegannathan Sundararajan
1c39decc2c 8146240: Three nashorn files contain "GNU General Public License" header
Reviewed-by: jlaskey
2016-01-05 18:40:43 +05:30
Athijegannathan Sundararajan
9f0dcb1ad6 8146147: Java linker indexed property getter does not work for computed nashorn string
Reviewed-by: jlaskey
2015-12-24 16:52:06 +05:30
Athijegannathan Sundararajan
ddf5ec8ed8 8145669: apply2call optimized callsite fails after becoming megamorphic
Reviewed-by: jlaskey, hannesw
2015-12-17 18:11:09 +05:30
Athijegannathan Sundararajan
e760e9cbf3 8145550: Megamorphic invoke should use CompiledFunction variants without any LinkLogic
Reviewed-by: jlaskey, hannesw, attila
2015-12-17 08:31:24 +05:30
Hannes Wallnöfer
67fe9c8efe 8144020: Remove long as an internal numeric type
Reviewed-by: attila, sundar, lagergren
2015-12-14 14:27:46 +01:00
Michael Haupt
64634dc9a4 8144221: fix Nashorn shebang argument handling on Mac/Linux
Reviewed-by: jlaskey, lagergren
2015-12-14 14:02:59 +01:00
Hannes Wallnöfer
9739ad81ee 8144131: ArrayData.getInt implementations do not convert to int32
Reviewed-by: lagergren, sundar
2015-11-27 08:44:02 +01:00
Attila Szegedi
505e5097e6 8141338: Move jdk.internal.dynalink package to jdk.dynalink
Reviewed-by: hannesw, sundar
2015-11-24 10:19:34 +01:00
Hannes Wallnöfer
c51be36580 8143821: Wrong test name in JDK-8143304
Reviewed-by: attila, sundar
2015-11-23 17:52:04 +01:00
Hannes Wallnöfer
f22e763e60 8141407: Wrong evaluation of a != a when a = NaN
Reviewed-by: sundar, attila
2015-11-23 15:26:10 +01:00
Hannes Wallnöfer
bc8fbeee55 8143304: Random failures when script size exceeds token limits
Reviewed-by: sundar, attila, lagergren
2015-11-19 14:37:14 +01:00
Hannes Wallnöfer
9e8fa2b8c2 8131929: Add option for debuggable scopes
Reviewed-by: attila, lagergren
2015-11-18 17:12:47 +01:00
Alejandro Murillo
f65591ae29 Merge 2015-11-13 10:35:28 -08:00
Attila Szegedi
e67cae2407 8142924: ES6 symbols created with Symbol.for should deserialize to canonical instances
Reviewed-by: hannesw, lagergren, sundar
2015-11-13 16:21:22 +01:00
Athijegannathan Sundararajan
5b33de6a32 8142857: Enable all nashorn "api" tests for jtreg test run
Reviewed-by: attila, hannesw, mhaupt
2015-11-12 19:51:43 +05:30
Athijegannathan Sundararajan
51556ae6ea 8142501: nashorn tests failing after recent changes
Reviewed-by: hannesw
2015-11-12 12:30:15 +05:30
Joseph Provino
c2eff46269 Merge 2015-11-11 23:47:43 +00:00
Hannes Wallnöfer
3bfbc63cd6 8047366: (1000000000000000128).toString() and (1000000000000000128).toFixed() don't evaluate to expected values
Reviewed-by: attila, sundar
2015-11-11 16:35:38 +01:00
Hannes Wallnöfer
12e30a3d04 8141505: floating point parse incorrect on big integer
Reviewed-by: attila, sundar
2015-11-11 16:34:26 +01:00
Hannes Wallnöfer
13dbf6a119 8141702: Add support for Symbol property keys
Reviewed-by: attila, sundar
2015-11-11 16:28:17 +01:00
Hannes Wallnöfer
15ef19ee62 8010803: Number to String conversion functionality overhaul
Reviewed-by: attila, lagergren
2015-11-11 15:22:14 +01:00
Attila Szegedi
75d6c996f1 8141550: Introduce a command line option instead of nashorn.unstable.relink.threshold system property
Reviewed-by: hannesw, sundar
2015-11-09 15:37:07 +01:00
Attila Szegedi
e3ea5caf72 8141538: Make DynamicLinker specific to a Context in Nashorn
Reviewed-by: hannesw, sundar
2015-11-09 14:04:43 +01:00
Chris Plummer
7a914a3308 8141489: [TESTBUG] requiredVersion in TEST.ROOT needs to updated to 4.1 b12
Updated requiredVersion to 4.1 b12

Reviewed-by: dholmes, sla, darcy
2015-11-05 10:29:46 -08:00
Athijegannathan Sundararajan
5532631558 8141285: NameCode should pass tests from BytecodeNameTest.java
Reviewed-by: attila, mhaupt
2015-11-03 21:08:53 +05:30
Andreas Woess
232477b3a4 8140759: add ES6 template literal test
Reviewed-by: hannesw, sundar
2015-10-29 11:37:48 +01:00
Michael Haupt
f932f4f869 8139047: add test for JSAdapter __getIds__
Reviewed-by: hannesw, sundar
2015-10-07 15:02:15 +02:00
Michael Haupt
0b4df44eb8 8139038: cleanup and documentation around JSAdapter
Reviewed-by: attila, hannesw
2015-10-07 14:00:45 +02:00
Hannes Wallnöfer
4b93e3631d 8138758: U+180E not recognized as whitespace by Joni
Reviewed-by: attila, sundar
2015-10-06 15:10:24 +02:00
Hannes Wallnöfer
26fc600426 8138882: Performance regression due to anonymous classloading
Reviewed-by: attila, sundar
2015-10-05 18:58:21 +02:00
Hannes Wallnöfer
c1fa6e31e8 8137281: OutOfMemoryError with large numeric keys in JSON.parse
Reviewed-by: attila, mhaupt
2015-10-02 15:50:49 +02:00
Athijegannathan Sundararajan
a7d931c5e1 8138616: invokeFunction fails if function calls a function defined in GLOBAL_SCOPE
Reviewed-by: hannesw, mhaupt
2015-10-01 21:27:30 +05:30
Hannes Wallnöfer
8b9c730750 8138632: Sparse array does not handle growth of underlying dense array
Reviewed-by: attila, sundar
2015-10-01 10:37:25 +02:00
Athijegannathan Sundararajan
be533e6f12 8137258: JSObjectLinker and BrowserJSObjectLinker should not expose internal JS objects
Reviewed-by: attila, hannesw
2015-09-28 18:58:52 +05:30
Attila Szegedi
54f2d18d65 8134488: var statement in if(false) block incorrectly evacuated into enclosing function
Reviewed-by: hannesw, sundar
2015-09-25 17:53:06 +02:00
Attila Szegedi
f231e5ab06 8134490: Dead var statement evacuation incorrectly descends into nested functions
Reviewed-by: hannesw, mhaupt
2015-09-25 12:46:53 +02:00