320 Commits

Author SHA1 Message Date
Athijegannathan Sundararajan
39366de6a7 8117883: nasgen prototype, instance member count calculation is wrong
Reviewed-by: hannesw, lagergren
2015-06-18 19:20:53 +05:30
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
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
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
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
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
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
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
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
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
Attila Szegedi
1333ff7ddd 8081062: ListAdapter should take advantage of JSObject
Reviewed-by: lagergren, sundar
2015-05-26 16:12:23 +02:00
Attila Szegedi
f9b1376aa3 8081015: Allow conversion of native arrays to Queue and Collection
Reviewed-by: hannesw, lagergren, sundar
2015-05-26 14:37:14 +02:00
Athijegannathan Sundararajan
5b954fdc5e 8036743: need ArrayBuffer constructor with specified data
Reviewed-by: attila, hannesw, lagergren
2015-05-26 13:49:45 +05:30
Athijegannathan Sundararajan
5431091715 8079145: jdk.nashorn.internal.runtime.arrays.IntArrayData.convert assertion
Reviewed-by: jlaskey, hannesw
2015-05-21 21:51:48 +05:30
Athijegannathan Sundararajan
8777094b4f 8080848: delete of bound Java method property results in crash
Reviewed-by: hannesw, lagergren
2015-05-21 18:44:51 +05:30
Athijegannathan Sundararajan
7945c7b276 8080598: Javadoc warnings in Global.java after lazy initialization
Reviewed-by: lagergren, hannesw
2015-05-20 14:16:19 +05:30
Michael Haupt
ff3855c8ba 8049300: jjs scripting: need way to quote $EXEC command arguments to protect spaces
Honor quoting with "" and '' as well as escaped spaces

Reviewed-by: hannesw, sundar
2015-05-15 16:36:25 +02:00
Attila Szegedi
c9191f56e0 8078414: Don't create impossible converters for ScriptObjectMirror
Reviewed-by: hannesw, sundar
2015-05-15 15:40:57 +02:00
Attila Szegedi
96747306e2 8079424: code generator for discarded boolean logical operation has an extra pop
Reviewed-by: lagergren, sundar
2015-05-15 10:19:37 +02:00
Attila Szegedi
0f400ba879 8067931: Improve error message when with statement is passed a POJO
Reviewed-by: lagergren, sundar
2015-05-13 09:38:59 -05:00
Athijegannathan Sundararajan
c8dc03d400 8080182: Array.prototype.sort throws IAE on inconsistent comparison
Reviewed-by: lagergren, hannesw
2015-05-13 12:45:14 +05:30
Athijegannathan Sundararajan
ee03c0e102 8080090: -d option should dump script source as well
Reviewed-by: hannesw, lagergren
2015-05-12 12:40:33 +05:30
Athijegannathan Sundararajan
fd0591c105 8080042: can't build nashorn.jar from jdk9-dev/nashorn using jdk8 installation as JAVA_HOME
Reviewed-by: lagergren, jlaskey
2015-05-11 22:57:24 +05:30
Attila Szegedi
3ac44fdc58 8066751: Remove casts redundant with Java 9 buffer APIs
Reviewed-by: hannesw, sundar
2015-05-06 16:48:31 +02:00
Athijegannathan Sundararajan
b9fbd2d32d 8079470: Misleading error message when explicit signature constructor is called with wrong arguments
Reviewed-by: jlaskey, hannesw
2015-05-06 20:04:42 +05:30
Hannes Wallnöfer
a2301acb62 8066237: Fuzzing bug: Parser error on optimistic recompilation
Reviewed-by: lagergren, attila
2015-05-06 16:22:22 +02:00
Attila Szegedi
421b276f85 8079362: Enforce best practices for Node token API usage
Reviewed-by: hannesw, sundar
2015-05-06 15:46:54 +02:00
Attila Szegedi
79086bc842 8079349: Eliminate dead code around Nashorn code generator
Reviewed-by: hannesw, lagergren
2015-05-06 13:36:42 +02:00
Attila Szegedi
dbcd4aef5f 8079269: Optimistic rewrite in object literal causes ArrayIndexOutOfBoundsException
Reviewed-by: hannesw, lagergren
2015-05-05 18:35:29 +02:00
Hannes Wallnöfer
08e8a63ab5 8078612: Persistent code cache should support more configurations
Reviewed-by: lagergren, attila
2015-05-05 14:30:00 +02:00
Hannes Wallnöfer
b3fa231c01 8078049: Nashorn crashes when attempting to start TypeScript compiler
Reviewed-by: lagergren, attila
2015-05-05 14:23:43 +02:00
Hannes Wallnöfer
c8634327e8 8053905: Eager code generation fails for earley boyer with split threshold set to 1000
Reviewed-by: attila, lagergren
2015-04-27 12:50:21 +02:00
Hannes Wallnöfer
9becc306ef 8066407: Function with same body not reparsed after SyntaxError
Reviewed-by: attila, lagergren
2015-04-27 12:27:33 +02:00
Hannes Wallnöfer
a000d5154a 8077955: Undeclared globals in eval code should not be handled as fast scope
Reviewed-by: lagergren, attila
2015-04-16 17:31:32 +02:00