Commit Graph

651 Commits

Author SHA1 Message Date
Attila Szegedi
3538d0af55 8026113: Nashorn arrays should automatically convert to Java arrays
Reviewed-by: jlaskey, sundar
2013-10-14 12:41:11 +02:00
Hannes Wallnöfer
3c50f75173 8026016: too many relinks dominate avatar.js http benchmark
Reviewed-by: sundar, jlaskey, attila
2013-10-14 11:45:15 +02:00
James Laskey
e0df3515ce 8026309: latest runsunspider.js tests contains several bugs
Reviewed-by: sundar, lagergren
2013-10-11 14:54:16 +02:00
Athijegannathan Sundararajan
2cb1e4ed46 Merge 2013-10-11 14:13:00 +02:00
Athijegannathan Sundararajan
76d698bbf8 8026317: $ in the function name results in wrong function being invoked
Reviewed-by: lagergren, jlaskey
2013-10-11 14:11:14 +02:00
Lana Steuck
cc7c1f2717 Merge 2013-10-11 03:09:54 -07:00
Athijegannathan Sundararajan
a71c4a5390 8026302: source representation of getter and setter methods is wrong
Reviewed-by: lagergren, hannesw, jlaskey
2013-10-11 11:15:59 +02:00
Hannes Wallnöfer
02625b48e3 8026292: Megamorphic setter fails with boolean value
Reviewed-by: jlaskey, sundar
2013-10-11 10:56:08 +02:00
Athijegannathan Sundararajan
4c22705313 Merge 2013-10-11 09:09:13 +02:00
Athijegannathan Sundararajan
36d36b2eda 8026263: [NASHORN] Test test/script/basic/JDK-8025488.js fails in nightly builds
Reviewed-by: jlaskey
2013-10-11 06:50:06 +02:00
Lana Steuck
717d782836 Merge 2013-10-10 13:41:19 -07:00
Athijegannathan Sundararajan
66bb0d28fa 8026264: Getter, setter function name mangling issues
Reviewed-by: lagergren, jlaskey
2013-10-10 21:43:35 +02:00
Christine Lu
cfdd010545 Added tag jdk8-b111 for changeset 99b8dd0c81a3 2013-10-10 10:09:30 -07:00
Marcus Lagergren
e0aeb3cfb7 8026250: Logging nullpointer bugfix and javadoc warnings
Reviewed-by: hannesw, jlaskey, sundar
2013-10-10 16:16:20 +02:00
Magnus Ihse Bursie
65be173f17 8001931: The new build system whitespace cleanup
Reviewed-by: tbell, simonis, erikj
2013-10-10 14:58:13 +02:00
Athijegannathan Sundararajan
a577bf4154 8026162: "this" in SAM adapter functions is wrong
Reviewed-by: jlaskey, hannesw
2013-10-10 14:43:22 +02:00
Athijegannathan Sundararajan
8cf4738031 8026248: importClass has to be a varargs function
Reviewed-by: jlaskey, hannesw
2013-10-10 13:17:57 +02:00
Athijegannathan Sundararajan
d5dda0a437 8026167: Class cache/reuse of 'eval' scripts results in ClassCastException in some cases
Reviewed-by: lagergren, jlaskey
2013-10-10 11:48:56 +02:00
Marcus Lagergren
16ce875fc6 8026137: Fix Issues with Binary Evaluation Order
Co-authored-by: Attila Szegedi <attila.szegedi@oracle.com>
Reviewed-by: hannesw, jlaskey
2013-10-09 17:53:22 +02:00
Hannes Wallnöfer
3ef5f027ce 8026008: Constant folding removes var statement
Reviewed-by: sundar, jlaskey
2013-10-09 14:50:39 +02:00
Athijegannathan Sundararajan
a7261c57e0 8026125: Array.prototype.slice.call(Java.type("java.util.HashMap")) throws ClassCastException: jdk.internal.dynalink.beans.StaticClass cannot be cast to jdk.nashorn.internal.runtime.ScriptObject
Reviewed-by: hannesw, jlaskey
2013-10-09 13:26:23 +02:00
Athijegannathan Sundararajan
1ed2372816 8026112: Function("with(x ? 1e81 : (x2.constructor = 0.1)){}") throws AssertionError: double is not compatible with object
Reviewed-by: lagergren, hannesw
2013-10-09 10:47:47 +02:00
Lana Steuck
3078374d13 Merge 2013-10-08 15:00:12 -07:00
Athijegannathan Sundararajan
c257318ccc 8026048: Function constructor should convert arguments to String before performing any syntax checks
Reviewed-by: jlaskey, hannesw
2013-10-08 16:46:03 +02:00
Hannes Wallnöfer
90e3c6f95e 8026042: FoldConstants need to guard against ArrayLiteralNode
Reviewed-by: jlaskey, sundar
2013-10-08 15:53:22 +02:00
Athijegannathan Sundararajan
21a8fda433 8026039: future strict names are allowed as function name and argument name of a strict function
Reviewed-by: hannesw, jlaskey
2013-10-08 14:57:31 +02:00
Hannes Wallnöfer
1c0f202382 8025965: Specialized functions with same weight replace each other in TreeSet
Reviewed-by: jlaskey, sundar
2013-10-08 13:11:15 +02:00
Athijegannathan Sundararajan
d77e1a1701 8026033: Switch should load expression even when there are no cases in it
Reviewed-by: jlaskey, hannesw
2013-10-08 13:02:39 +02:00
Hannes Wallnöfer
3d45463461 8025213: Assignment marks variable as defined too early
Reviewed-by: jlaskey, lagergren, sundar
2013-10-08 11:55:19 +02:00
Athijegannathan Sundararajan
be135d2901 8025771: Enhance Nashorn Contexts
Reviewed-by: jlaskey, hannesw
2013-10-04 16:21:29 +05:30
David Katleman
62f7e57e93 Added tag jdk8-b110 for changeset 95df1088d4af 2013-10-02 13:26:56 -07:00
Athijegannathan Sundararajan
04d4458ef8 8025488: Error.captureStackTrace should not format error stack
Reviewed-by: hannesw, attila
2013-10-01 14:38:56 +05:30
James Laskey
aa48b7426d 8025689: fx:base.js classes not loading
Reviewed-by: sundar
2013-09-30 18:09:33 -03:00
Athijegannathan Sundararajan
5c16d54797 8025629: load function should support a way to load scripts from classpath
Reviewed-by: lagergren, hannesw, attila
2013-09-30 21:33:38 +05:30
Jim Laskey
77d2612584 Merge 2013-09-30 12:06:43 -03:00
Hannes Wallnöfer
c9fc9b4c9c 8025589: Array.prototype.shift should only copy defined elements in generic mode
Reviewed-by: sundar, attila
2013-09-30 15:54:05 +02:00
Jim Laskey
fc9a002082 Merge 2013-09-30 10:24:42 -03:00
Lana Steuck
6425959e4b Merge 2013-09-27 18:38:35 -07:00
Hannes Wallnöfer
bf815f12fa 8025520: Array.prototype.slice should only copy defined elements
Reviewed-by: sundar, lagergren
2013-09-27 17:00:37 +02:00
Hannes Wallnöfer
1240bd8a48 8025515: Performance issues with Source.getLine()
Reviewed-by: sundar, lagergren
2013-09-27 16:59:01 +02:00
Lana Steuck
57f8c70159 Merge 2013-09-26 17:23:22 -07:00
Christine Lu
a1c24bd839 Added tag jdk8-b109 for changeset a9c63e60bf10 2013-09-26 10:43:59 -07:00
Athijegannathan Sundararajan
34bd48765e Merge 2013-09-26 16:37:21 +05:30
Hannes Wallnöfer
2e8063226d 8025486: RegExp constructor arguments are not evaluated in right order
Reviewed-by: sundar
2013-09-26 11:47:24 +02:00
Hannes Wallnöfer
abc7352b43 8025197: String replace method fails with regexp /$/gi
Reviewed-by: sundar
2013-09-26 10:14:24 +02:00
Hannes Wallnöfer
0414dcb01d 8025434: RegExp lastIndex can exceed int range
Reviewed-by: lagergren, sundar
2013-09-25 16:37:56 +02:00
Athijegannathan Sundararajan
f8d5db06b9 8025325: parseFloat does not handle '.' in exponent part
Reviewed-by: hannesw
2013-09-25 08:17:37 +05:30
Athijegannathan Sundararajan
93c8cbec9c 8025312: parseInt should convert 'radix' argument to ToInt32 even if empty string is parsed
Reviewed-by: jlaskey, hannesw
2013-09-24 20:43:42 +05:30
Athijegannathan Sundararajan
d4102fea81 Merge 2013-09-23 14:20:45 +05:30
Hannes Wallnöfer
1508b37a51 8025163: Date methods should not return -0
Reviewed-by: lagergren, jlaskey
2013-09-21 10:11:15 +02:00
Lana Steuck
89fc1030c1 Merge 2013-09-20 19:17:04 -07:00
Athijegannathan Sundararajan
e259f89913 8025149: JSON.stringify does not handle 'space' argument as per the spec
Reviewed-by: jlaskey, hannesw
2013-09-20 22:37:08 +05:30
Athijegannathan Sundararajan
f996a92b3b 8025147: Trailing comma is not allowed in JSONArray and JSONObject
Reviewed-by: hannesw, jlaskey
2013-09-20 20:55:43 +05:30
Hannes Wallnöfer
82156b393c 8022587: ClassCache is not optimal and leaks Source instances
Reviewed-by: lagergren, attila
2013-09-20 12:11:08 +02:00
Athijegannathan Sundararajan
337cfe593f 8025111: undefined or null 'with' expression in empty with block should throw TypeError
Reviewed-by: lagergren, hannesw
2013-09-20 12:56:07 +05:30
Athijegannathan Sundararajan
996bf0feef 8025090: 'while' statement with 'test' using var before being declared in body results in VerifyError
Reviewed-by: jlaskey
2013-09-19 23:48:37 +05:30
Christine Lu
1c1306bb1d Added tag jdk8-b108 for changeset 3afa46cd7e01 2013-09-19 09:37:28 -07:00
Athijegannathan Sundararajan
d6f64ae009 8025080: Object literal getter, setter function with number format property name results in ClassFormatError
Reviewed-by: lagergren, hannesw
2013-09-19 21:20:47 +05:30
Hannes Wallnöfer
3d49dcdd9a 8023154: compileAllTests fails with: 2 tests failed to compile
Reviewed-by: sundar, jlaskey
2013-09-19 15:39:01 +02:00
Athijegannathan Sundararajan
c2859f0bca 8025048: true as case label results in ClassCastException
Reviewed-by: lagergren
2013-09-19 13:34:01 +05:30
Athijegannathan Sundararajan
8f90571322 8024973: Using a different ScriptContext with a CompiledScript results in ScriptException
Reviewed-by: jlaskey, hannesw
2013-09-18 16:36:25 +05:30
Athijegannathan Sundararajan
e287ff4ec9 8024972: for (LeftHandSideExpression in Expression) crashes the compiler
Reviewed-by: lagergren, hannesw
2013-09-18 13:06:17 +05:30
Lana Steuck
e4217ce785 Merge 2013-09-17 08:21:42 -07:00
Attila Szegedi
5ddc447fc5 8024846: keep separate internal arguments variable
Reviewed-by: lagergren, sundar
2013-09-16 14:44:20 +02:00
Athijegannathan Sundararajan
aea57c9e6f 8024847: Java.to should accept mirror and external JSObjects as array-like objects as well
Reviewed-by: hannesw, attila, lagergren
2013-09-16 15:08:36 +05:30
Athijegannathan Sundararajan
afde75bb52 Merge 2013-09-13 17:50:18 +05:30
Athijegannathan Sundararajan
8c226a6210 8024619: JDBC java.sql.DriverManager is not usable from JS script
Reviewed-by: jlaskey, lagergren, attila
2013-09-13 16:45:11 +05:30
Christine Lu
9ce2493888 Added tag jdk8-b107 for changeset e94578d4e6a5 2013-09-12 11:09:22 -07:00
Athijegannathan Sundararajan
a122ebe169 8024693: Various minor issues with JSONWriter used by script parser API
Reviewed-by: jlaskey, hannesw
2013-09-12 22:16:40 +05:30
Hannes Wallnöfer
58b4892936 8024512: Regex /[^\[]/ doesn't match
Reviewed-by: jlaskey, sundar
2013-09-12 17:13:59 +02:00
Hannes Wallnöfer
a556e37ff2 8024476: Octane regression on Richards
Reviewed-by: sundar, jlaskey
2013-09-12 14:02:15 +02:00
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