1462 Commits

Author SHA1 Message Date
Athijegannathan Sundararajan
d9a4c01c25 8114838: Anonymous functions escape to surrounding scope when defined under "with" statement
Reviewed-by: attila, hannesw, lagergren
2015-06-30 13:10:37 +05:30
Attila Szegedi
74b5de9db2 8130035: Move test/script/basic/NASHORN-627.js to currently-failing until JDK-8129881 is fixed
Reviewed-by: lagergren, sundar
2015-06-29 10:42:57 +02:00
Lana Steuck
66423c6b33 Merge 2015-06-28 16:38:44 -07:00
Attila Szegedi
c277f9d37c 8129959: DebugLogger has unnecessary API methods
Reviewed-by: hannesw, lagergren
2015-06-26 17:49:17 +02:00
Attila Szegedi
6069477207 8129950: Wrong condition for checking absence of logger in MethodHandleFactory
Reviewed-by: hannesw, lagergren
2015-06-26 17:08:14 +02:00
David Katleman
46cb74729a Added tag jdk9-b70 for changeset 271525e41254 2015-06-25 10:21:42 -07:00
Joe Darcy
35d84fe429 8129597: Add tier 3 test definitions to the JDK 9 forest
Reviewed-by: smarks, jjg
2015-06-24 15:19:50 -07:00
Attila Szegedi
bafa097ac7 8129410: Java adapters with class-level overrides should preserve variable arity constructors
Reviewed-by: lagergren, sundar
2015-06-23 11:16:48 +02:00
Phil Race
452e61825c Merge 2015-06-22 13:29:27 -07:00
Lana Steuck
c9e37d0dcb Merge 2015-06-18 10:24:14 -07:00
Athijegannathan Sundararajan
39366de6a7 8117883: nasgen prototype, instance member count calculation is wrong
Reviewed-by: hannesw, lagergren
2015-06-18 19:20:53 +05:30
Lana Steuck
bcd100fae5 Added tag jdk9-b69 for changeset b15ed6c5dedd 2015-06-18 01:43:18 -07:00
Hannes Wallnöfer
18c25f6f9f 8098808: Convert Scope from interface to class
Reviewed-by: sundar, attila
2015-06-17 13:56:53 +02:00
Athijegannathan Sundararajan
55f2b58bad 8098847: obj."prop" and obj.'prop' should result in SyntaxError
Reviewed-by: hannesw, attila
2015-06-17 14:21:20 +05:30
Hannes Wallnöfer
28f8652430 8087312: PropertyMapWrapper.equals should compare className
Reviewed-by: sundar, attila
2015-06-17 09:10:45 +02:00
Athijegannathan Sundararajan
2ea5c82229 8098578: Global scope is not accessible with indirect load call
Reviewed-by: attila, hannesw
2015-06-16 18:26:25 +05:30
Hannes Wallnöfer
e87ce70fa1 8098807: Strict eval throws ClassCastException with large scripts
Reviewed-by: sundar, attila
2015-06-16 13:25:41 +02:00
Hannes Wallnöfer
3c76c77513 8098546: eval within a 'with' leaks definitions into global scope
Reviewed-by: sundar, attila
2015-06-15 15:49:14 +02:00
Hannes Wallnöfer
21c3399f5e 8086052: Script evaluation should not return last function declaration
Reviewed-by: sundar, attila
2015-06-15 15:37:01 +02:00
Athijegannathan Sundararajan
907f7f2c7c 8087211: Indirect evals should be strict with -strict option
Reviewed-by: lagergren, hannesw
2015-06-12 16:55:20 +05:30
Lana Steuck
a0d63f0bf4 Merge 2015-06-11 20:19:14 -07:00
Lana Steuck
0846823187 Added tag jdk9-b68 for changeset 4b727de06e46 2015-06-11 10:44:20 -07:00
Athijegannathan Sundararajan
f3198a6632 8087136: regression: apply on $EXEC fails with ClassCastException
Reviewed-by: hannesw, lagergren
2015-06-11 13:33:34 +05:30
Michael Haupt
0f1bfba6c9 8080490: add $EXECV command to Nashorn scripting mode
Additional arguments to the command line can be passed as a single array, or as a sequence of varargs.

Reviewed-by: attila, hannesw
2015-06-09 09:27:02 +02:00
Athijegannathan Sundararajan
f5e449156c 8086032: Add compiler error tests when syntax extensions are used with --no-syntax-extensions option
Reviewed-by: attila, hannesw
2015-06-09 14:19:57 +05:30
Michael Haupt
a1bb22a48c 8085885: address Javadoc warnings in Nashorn source code
Reviewed-by: hannesw, lagergren
2015-06-08 10:28:04 +02:00
Athijegannathan Sundararajan
31d1f45723 8085937: add autoimports sample script to easily explore Java classes in interactive mode
Reviewed-by: lagergren, attila
2015-06-08 14:10:39 +05:30
Athijegannathan Sundararajan
2466fa7128 8085802: Nashorn -nse option causes parse error on anonymous function definition
Reviewed-by: lagergren, attila
2015-06-08 13:57:44 +05:30
Athijegannathan Sundararajan
71388e3fb6 8085810: Return value of Objects.requireNonNull call can be used
Reviewed-by: lagergren, attila
2015-06-05 19:05:37 +05:30
Michael Haupt
cd3974600b 8080087: Nashorn $ENV.PWD is originally undefined
On Windows, the PWD environment variable does not exist and cannot be imported in scripting mode, so it is set explicitly.

Reviewed-by: lagergren, sundar
2015-06-05 12:38:53 +02:00
Lana Steuck
13a3f9e134 Merge 2015-06-04 18:49:16 -07:00
David Katleman
92021a8d90 Added tag jdk9-b67 for changeset 86337dfa5da2 2015-06-04 09:31:52 -07:00
Attila Szegedi
a1e2230a40 8081813: JSONListAdapter should delegate its [[DefaultValue]] to wrapped object
Reviewed-by: lagergren, sundar
2015-06-03 16:28:57 +02:00
Athijegannathan Sundararajan
105784b853 8081809: Missing final modifier in method parameters (nashorn code convention)
Reviewed-by: attila, hannesw
2015-06-03 18:44:12 +05:30
Hannes Wallnöfer
b7ecae1bb9 8066220: Fuzzing bug: MethodHandle bug (Object,Object) != (boolean)Object
Reviewed-by: lagergren, attila, sundar
2015-06-03 09:36:58 +02:00
Michael Haupt
2a94099e09 8081696: reduce dependency of Nashorn tests on external components
Reviewed-by: attila, sundar
2015-06-02 17:08:13 +02:00
Michael Haupt
db8a93364f 8080275: transparently download testng.jar for Nashorn testing
Instead of asking the user to manually download and install testng.jar, automate the process via "ant externals".

Reviewed-by: hannesw, sundar
2015-06-02 14:35:03 +02:00
Michael Haupt
6d8372c2a7 8081668: fix Nashorn ant externals command
Update URLs for Showdown (JavaScript Markdown implementation) download

Reviewed-by: hannesw, sundar
2015-06-02 14:34:37 +02:00
Michael Haupt
b09c2994ec 8081604: rename ScriptingFunctions.tokenizeCommandLine
This used to be a single-purpose private helper; it is now used by external clients, and for new purposes. Consequently, it deserves a less specific name.

Reviewed-by: attila, lagergren, sundar
2015-06-02 10:40:19 +02:00
Michael Haupt
f4437cec2a 8081603: erroneous dot file generated from Nashorn --print-code
Emit a dot label string-conformant line break instead of a hard one to avoid strings ranging across an EOL.

Reviewed-by: attila, lagergren, sundar
2015-06-02 10:40:10 +02:00
Attila Szegedi
0d2785c745 8066773: JSON-friendly wrapper for objects
Reviewed-by: jlaskey, lagergren, sundar
2015-06-02 10:55:17 +02:00
Joe Darcy
63cb346d4a 8075555: Add tiered testing definitions to the nashorn repo
Reviewed-by: lagergren
2015-06-02 00:16:20 -07:00
Athijegannathan Sundararajan
c3b0b573ff 8081609: engine.eval call from a java method which was called from a previous engine.eval results in wrong ScriptContext being used
Reviewed-by: attila, lagergren
2015-06-02 12:42:53 +05:30
Attila Szegedi
4a9502a06a 8066218: UTF-32LE mistakenly detected as UTF-16LE
Reviewed-by: lagergren, sundar
2015-06-01 15:01:36 +02:00
Lana Steuck
d9699bc260 Merge 2015-05-28 16:50:12 -07:00
David Katleman
6b065339e5 Added tag jdk9-b66 for changeset addfa81a8448 2015-05-28 16:13:56 -07:00
Athijegannathan Sundararajan
d321ca9523 8081156: jjs "nashorn.args" system property is not effective when script arguments are passed
Reviewed-by: hannesw, lagergren
2015-05-27 22:18:51 +05:30
Erik Joelsson
c318ab6e23 8081814: Modularize the deploy build
Reviewed-by: ihse, ddehaven
2015-05-27 17:35:21 +02:00
Attila Szegedi
6e24cffe34 8081204: ListAdapter throws NPE when adding/removing elements outside of JS context
Reviewed-by: lagergren, sundar
2015-05-27 14:37:11 +03:00
Athijegannathan Sundararajan
b05ced98a1 8007456: Nashorn test framework @argument does not handle quoted strings
Reviewed-by: hannesw, lagergren
2015-05-27 13:16:50 +05:30