Debian Codegraph @

rhino/RELEASE-NOTES.md

raw symbols SCIP
1 # Rhino 1.7.7.2
2 ## February 1, 2016
3
4 This release contains fixes for a few important bugs that have caught Rhino users out in the
5 field.
6
7 * Do not throw a Java exception from array.prototype.sort() no matter how weird the user-supplied
8 comparator function is. This is a major difference between JavaScript and Java and has caused
9 us to avoid using "Arrays.sort" on JavaScript arrays.
10 * Fix incorrect offsets in the "DataView" class.
11
12 It also includes several other fixes:
13
14 * Always append a column number to V8-style stack traces. (Unfortunately it is always "0".)
15 * Support Object.is and Object.assign.
16 * Make the Symbol implementation match the spec (for VERSION_ES6 and up only).
17 * Avoid throwing internal Java exceptions for certain native objects in "toJSON".
18 * Allow subclassing of ContinuationPending.
19 * For VERSION_ES6 and up, sort properties in the spec-defined order (int property names
20 first).
21 * Fix stack overflow in string concatenation.
22 * Improve performance of ConsString.toString
23
24 The next release is likely to be 1.7.8.
25
26 # Rhino 1.7.7.1
27 ## February 1, 2016
28
29 This release fixes a few critical bugs that were affecting code in the field:
30
31 * Improve String.prototype.repeat to work more efficiently and to not overflow
32 * Fix CallSite.isNative() and isTopLevel() so that they do not throw fatal errors
33 * Replace the implementation of the "YearFromTime" internal method for the Date class to avoid large CPU loops
34
35 Specific Changes:
36
37 * Formatting issue with SourceReader.
38 * Fix CallSite.isNative() and isTopLevel() to not throw.
39 * Make String.prototype.repeat not overflow for large values, and change code style a bit.
40 * Add tests from 1.7.7.
41 * Add Gradle code from 1.7.7.
42 * Replace YearFromTime with code from jsdate.cpp to avoid long CPU loops.
43
44 # Rhino 1.7.7
45 ## June 17, 2015
46
47 Major changes in this release:
48
49 [Release 1.7.7](https://github.com/mozilla/rhino/issues?q=milestone%3A%22Release+1.7.7%22+is%3Aclosed)
50
51 Specific changes:
52
53 * [Issue 202](https://github.com/mozilla/rhino/issues/202) Initial support for ECMA Script 6 "method definitions".
54 * [Issue 201](https://github.com/mozilla/rhino/issues/201) Make sure that all native Error instances can be converted
55 to JSON.
56 * [Issue 184](https://github.com/mozilla/rhino/issues/184) Fix compile encoding errors.
57 * [Issue 178](https://github.com/mozilla/rhino/issues/178) Support build using Gradle (build using Ant is still
58 supported but will be removed in a future release.)
59 * [Issue 176](https://github.com/mozilla/rhino/issues/176) Add ScriptRuntime.throwCustomError to make it easier
60 to re-throw Java exceptions
61 * [Issue 166](https://github.com/mozilla/rhino/issues/166) Support many ES6 additions to the Math class.
62 * [Issue 165](https://github.com/mozilla/rhino/issues/165) Support many ES6 additions to the Number class.
63 * [Issue 163](https://github.com/mozilla/rhino/issues/163) Support ES6 additions to the String class.
64
65 Thanks to everyone who contributed!
66
67 Ahmed Ashour (3):
68 * Add .gitattributes for End-Of-Line automatic handling
69 * Remove extra space
70 * Update .gitignore for eclipse generated files.
71
72 Evgeny Shepelyuk (45):
73 * Implementing possibility of writing JS tests code inside JUnit Test.
74 * + gradle wrapper + sources and test compilation + jar building
75 * + More JUnit style for Gradle compatibility - disabled test removed
76 * + running tests
77 * + benchmark test changes for Gradle compaibility + run benchmark from Gradle + publishing artifacts from Gradle
78 * + benchmark test changes for Gradle compaibility + run benchmark from Gradle + publishing artifacts from Gradle
79 * + publishing artifacts to maven compatible repositories
80 * + releasing with Gradle
81 * + releasing with Gradle
82 * + releasing with Gradle
83 * + releasing with Gradle
84 * [Gradle Release Plugin] - new version commit: '1.7.8'.
85 * + releasing with Gradle
86 * + releasing with Gradle
87 * + releasing with Gradle
88 * [Gradle Release Plugin] - pre tag commit: '1.7.8'.
89 * Revert "+ publishing artifacts to maven compatible repositories"
90 * rollback gradle release
91 * + properly populating manifest + exclude unnecesary files from jar
92 * + adding license to jar
93 * + build will not fail when maven credentials are not defined
94 * + getting rhino display version from MANIFEST
95 * * modifying README with Gradle details
96 * Update README.md
97 * Improving reporting of MozillaSuiteTest tests
98 * Improving reporting of MozillaSuiteTest tests
99 * + initial implementation of String.prototype.includes
100 * + initial implementation of String.prototype.includes
101 * + initial implementation of String.prototype.includes
102 * + initial implementation of String.prototype.startsWith
103 * + initial implementation of String.prototype.startsWith
104 * + initial implementation of String.prototype.endsWith
105 * + initial implementation of String.prototype.endsWith
106 * + initial implementation of String.prototype.endsWith
107 * + implementation of String.prototype.normalize
108 * + implementation of String.prototype.normalize
109 * + implementation of String.prototype.normalize
110 * + implementation of String.prototype.repeat
111 * + implementation of String.prototype.repeat
112 * + implementation of String.prototype.codePointAt
113 * + implementation of String.prototype.codePointAt
114 * * fixing tests after implementation of ES6 string methods + implementing RequireObjectCoercible from ECMA spec
115 * * fixing tests after implementation of ES6 string methods + implementing RequireObjectCoercible from ECMA spec
116 * * fixing tests after implementation of ES6 string methods + implementing RequireObjectCoercible from ECMA spec
117 * Better exception reporting
118
119 Gregory Brail (16):
120 * Update for new development iteration.
121 * Read manifest URLs in a loop until we find the right one when trying to determine the implementation version.
122 * Permissions fix.
123 * Fix potential NPE in ComplianceTest.
124 * Re-run IDMap on NativeString.
125 * Merge branch 'issue_176_2' of https://github.com/raimi/rhino into raimi-issue_176_2
126 * Merge branch 'master' of https://github.com/asashour/rhino into asashour-master
127 * Add .gitattributes.
128 * Re-arrange "global variables" regression tests for fewer spurious failures under Gradle.
129 * Don't make "javaException" and "rhinoException" on the NativeError object enumerable, because they cannot be converted to JSON.
130 * Fix file name for V8 benchmark results.
131 * Add some ES6 methods to Math and Number.
132 * "BigO" regression test exhibits different and inconsistent behavior on Java 8. So fix it.
133 * Fix a bug in Math.hypot().
134 * Added a constant for ECMAScript 6 language level: Context.VERSION_ES6.
135 * Add "readline" and "write" to console.
136
137 Raimund Jacob (5):
138 * Allow throwing arbitrary objects from java world
139 * 176: Adjust javadoc to reality.
140 * Emacs, sorry
141 * Issue176: Test infrastructure
142 * 176: Actually Working Tests
143
144 sainaen (1):
145 * Print exception message in case of JavaScriptException in ScriptTestsBase
146
147 tntim96 (1):
148 * Fix Test compile encoding error 'unmappable character for encoding ASCII' - https://github.com/mozilla/rhino/issues/184
149
150 uchida_t (5):
151 * set capacity for StringBuilder in String#repeat
152 * Implement ES6 MethodDefinition
153 * `set` and `get` is valid method name.
154 * NumericLiteral/StringLiteral is valid method name.
155
156 # Rhino 1.7.6
157 ## April 15, 2015
158
159 Merged many of the outstanding pull requests in the GitHub repo.
160
161 High-level changes include the following:
162
163 * Many compatibility fixes for Date, Array, String, and others (André Bargull)
164 * Array.find() and findIndex() (Evgeny Shepelyuk)
165 * String.trimLeft() and trimRight() (Travis Ennis)
166 * AST and "toSource" fixes (tntim96)
167 * Support for V8 Error extensions, including Error.captureStackTrace (Greg Brail)
168 * Support for typed arrays (Greg Brail)
169 * Support for attaching "external data" as the indexed properties of any object (Greg Brail)
170
171 André Bargull (60):
172 * NativeDate: Date.length and Date.UTC.length is 7
173 * NativeDate: Fix bug 732779 (Date.prototype.setXXX functions don't evaluate all parameters)
174 * NativeDate: Date.prototype.toJSON uses [[GET]] to obtain the "toISOString" property
175 * add js_toISOString method to format date values in ISO-8601 Extended Format with expanded year representation if necessary
176 * NativeDate: Update Date.parse to support simplified ISO 8601 Extended Format [15.9.1.15]
177 * Fix indentation in NativeDate.java
178 * NativeError: Error.prototype.name and Error.prototype.message are not enumerable
179 * NativeError: 15.11.2.1 and 15.11.4.4 updates
180 * Arguments: arguments object should not have its own 'constructor' property, instead it inherits 'constructor' through its prototype
181 * Arguments: 'callee', 'caller' and 'length' properties can be redefined for the arguments object
182 * BaseFunction: Function.prototype.toString arity is 0
183 * BaseFunction: The 'prototype' property on function instances can be redefined
184 * BaseFunction: The 'arguments' property can be redefined for function instances
185 * NativeArray: Check [[Extensible]] flag for dense-array case in [[Put]]
186 * NativeArray: Remove (invalid) round-trips to ScriptRuntime when getting/setting elements
187 * NativeArray: Follow spec more closely for Array.isArray and Array.prototype.concat
188 * NativeArray: Array.prototype.{indexOf, lastIndexOf} bug fixes
189 * NativeArray: Array.prototype.sort bug fixes (bug 728286)
190 * NativeArray: Multiple changes to ensure specification algorithms are followed more closely
191 * TopLevel,NativeGlobal,ScriptRuntime: Add cache for native error objects
192 * NativeNumber: Handle case when precision is Infinity for Number.prototype.{toFixed,toExponential,toPrecision}
193 * NativeObject: Object.prototype.toLocaleString uses [[Get]] to retrieve 'toString' property
194 * NativeObject: Handle undefined arguments in Object.prototype.{hasOwnProperty,propertyIsEnumerable}
195 * NativeString: String.prototype.replace arity is 2 instead of 1
196 * NativeString: Handle undefined arguments in String.prototype.slice
197 * ScriptRuntime: Fix range check to follow spec in numberToString()
198 * ScriptRuntime: Set-up proto and parent-scope for TypeErrorThrower function
199 * ScriptableObject: Object.defineProperties needs to make sure to call [[Get]] exactly once for each property entry
200 * NativeRegExp: Handle undefined arguments in compile and exec
201 * NativeRegExp: Report error if a RegExp flag is used more than once
202 * NativeRegExp: RegExp.prototype.compile arity is 2
203 * NativeRegExp: RegExp.prototype.lastIndex is lazily evaluated and may be set to non-writable as well
204 * NativeRegExpCtor: arity of RegExp constructor is 2
205 * NativeRegExpCtor: RegExp.prototype.{multiline,star,input,underscore} properties can be re-defined
206 * RegExpImpl: Multiple changes for String.prototype.{match,search,replace,split}
207 * Remove obsolete test case js1_2/function/regexparg-2-n.js
208 * update test case doctests/arguments.doctest now that the arguments object inherits the 'constructor' property through its prototype
209 * NativeRegExp: Make octal escape sequences match web reality
210 * RegExpImpl: String.prototype.split with separator=undefined no longer treated as separator='undefined'
211 * Fix indentation
212 * Context: remove duplicate code in Context#newObject()
213 * Context: Use StackTraceElement API to traverse stack-trace
214 * NativeArray: address review comment from hns
215 * Updated tests files per instructions in o.m.j.tests.MozillaSuiteTest
216 * Patch for Bug 783797 ("Function calls across multiple global scopes are not handled properly")
217 * Silence warnings in ClassFileWriter
218 * Add missing @Deprecated annotations
219 * Add missing @Override annotations
220 * Add missing generic type info to deprecatedsrc/
221 * Add missing generic type info to toolsrc/
222 * Add missing generic type info to testsrc/
223 * Add missing generic type info to src/
224 * Fix invalid JavaDoc links
225 * Replace StringBuffer with StringBuilder if possible
226 * Address review comments from hns
227 * Generators save and later restore the current stack when processing the 'yield' operation. Our current implementation for restoring the stack unfortunately confuses the Java classfile verifier, so at class load time a VerifierError is thrown. This happens because the verifier can no longer ensure that the proper types are placed on the stack, since the stack-state is saved in a simple Object[]. Re-ordering a few operations is only necessary so the verifier will again accept the generated class. But this is only done for generators because it creates slightly less efficient code compared to the standard case.
228 * Add doctest and update comments with proper bug number
229 * Patch for Bug 782363 ("Increment/Decrement alters const variables")
230 * Patch for Bug 780458 ("Math.IEEEremainder makes ToInt32 slow for non-integer values") (V8):
231 * Patch for Bug 789277 ("JSC: "missing ; after statement" message prints out for the line after the problem one")
232
233 C. Scott Ananian (1):
234 * Don't swallow empty lines in doctest; split lines on Mac/Windows/Unix.
235
236 Edison (2):
237 * Add working directory support to "runCommand"
238 * Add working directory support to "runCommand"
239
240 Elliott Baron (1):
241 * Add manpage for Rhino shell.
242
243 Evgeny Shepelyuk (2):
244 * find and findIndex initial impl
245 * Improving test framework + one JUnit class = one JS suite + reporting JS stacktrace on error + load function is available in JS + separate file for JS assertions
246
247 Gregory Brail (31):
248 * Update versions for next iteration.
249 * Update README for release notes.
250 * Change benchmark output so we can "plot" it in Maven.
251 * Fix code cleanup fix that broke the Java 6 build.
252 * Fix benchmark output file format again.
253 * Re-run ID map on NativeString.
254 * Manually add .gitignore additions from @sghill.
255 * Added a bit more to the README including content from @shirishp
256 * Add a NOTICE with the V8 copyright message.
257 * Move anba's new DoubleConversion code into the package with the rest of the code derived from V8.
258 * Remove retrotranslator code to generate 1.4-compatible bytecode. Switch bytecode generation to Java 6.
259 * Remove code and build artifacts pointing to the "old E4X" implementation, based on XML Beans.
260 * Remove unused XML beans-based E4X implementation.
261 * One last vestige of XML Beans.
262 * Re-generate ID map on NativeArray.
263 * Initial checkin of typed arrays and tests from V8. Fix bad capitalization.
264 * Fix some integer encoding and add more test cases.
265 * Switch typed array tests to use Evgeny's framework for running them. Make them work only with version 1.8.
266 * Make typed arrays only appear in 1.8.
267 * Add List implementation for all native arrays.
268 * Add "Error" to the set of standard Error constructors that could go down the new code path to create an error.
269 * Complete List implementation for typed arrays. Write typed array unit tests for the List implementation.
270 * Do not double-initialize Error.
271 * Make loading of typed array classes lazy. Rename Java classes so that the names are more consistent.
272 * Support for V8-style stack trace support: Error.prepareStackTrace Error.captureStackTrace Error.stackTraceLimit And "V8" format stack traces.
273 * Improve efficiency of NativeError via pre-cached Method objects and reduced number of default fields.
274 * Make "stack" non-enumerable until generated.
275 * Add "setExternalArrayData" to ScriptableObject to allow array data to be stored outside the core object.
276 * Set default version in shell to "180".
277 * Add method to both get and set external array data.
278 * Add "initSafeStandardObjects" to create standard objects with no Java class access whatsoever.
279
280 Ievgenii.Shepeliuk (2):
281 * `findIndex' implementation
282 * more V8 compatibility
283
284 Raymond Auge (1):
285 * rhino exits the JVM even when run as a subshell of another java shell - bug-835147
286
287 Travis Ennis (2):
288 * Added the Javascript 1.8 String methods trimLeft and trim Right.
289 * Added the Javascript 1.8 String methods trimLeft and trimRight.
290
291 sainaen (1):
292 * Add 'LanguageVersion' annotation. Make 1.8 default version for 'ScriptsTestsBase'
293
294 sghill (1):
295 * removing old .cvsignore files
296
297 tntim96 (5):
298 * 'undefined' pattern should be treated as empty string in RegExp constructor http://www.ecma-international.org/ecma-262/5.1/#sec-15.10.4.1 https://sourceforge.net/p/htmlunit/bugs/1599/
299 * Bug 798642. AST 'toSource' on getter/setter mistakenly adding 'function' keyword https://bugzilla.mozilla.org/show_bug.cgi?id=798642
300 * Bug 800616. Fix AST 'toSource' for Octal and Hexadecimal literals https://bugzilla.mozilla.org/show_bug.cgi?id=800616
301 * Fix AST empty switch to source
302 * Fix compile encoding error 'unmappable character for encoding ASCII'
303
304 # Rhino 1.7R5
305 ## January 29, 2015
306
307 André Bargull (24):
308
309 * Add missing license header to DefineClassMapInheritance.java
310 * Remove invalid UTF-8 encoded unicode replacement characters (EF BF BD)
311 * Add missing entries
312 * Bug 772011: Decompiler does not add curly brackets for labelled statements
313 * Add fix for bug-772833 (comment copied over from Parser::condExpr1 in frontend/Parser.cpp)
314 * Fix bug 686806: - trailing commas aren't allowed in object/array literals per JSON spec - avoid using Integer.parseInt() to parse unicode escape sequences since parseInt() also accepts non-ASCII digits - also avoid using Character.isDigit() in readNumber() for the very same reason - readString() always created a StringBuilder instance to collect the input data, obviously this is actually only necessary when the input contains escaped characters. Therefore I've changed readString() to take the same approach as used in jsonparser.cpp - the JSON number specification is stricter than Double.parseDouble(), for example Double.parseDouble() accepts the input string '10.'. To ensure only valid JSON number literals are passed to Double.parseDouble(), readNumber() was refactored to perform the necessary input validation.
315 * Patch for bug 774083.
316 * Patch for Bug 688023:
317 * Fix broken test cases which relied on the old (and erroneous) toSource() output
318 * Patch bug 685403
319 * Patch for bug 637811:
320 * Fix bug 773573: Search for first curly bracket after closing parentheses to take account of object destructuring parameters
321 * Simple doctest for bug 773573
322 * Array.prototype.sort performed an unchecked cast from long to int without any overflow checks, this may result in a negative length which then throws a NegativeArraySizeException in Java, cf. js1_5/Array/regress-157652.js . A similar problem was found in NativeJSON, so I've handled that as well
323 * Add explicit cast to int to ensure previous behaviour is retained
324 * Calls must not be special-calls and reference-calls at the same time, cf. js1_5/Regress/regress-319391.js for a test case
325 * Enable js1_5/Regress/regress-319391.js for MozillaSuiteTest
326 * Patch for Bug 728286
327 * Add test case
328 * Patch for Bug 778549
329 * Add missing overflow detection when processing RegExp character class pattern
330 * Patch for Bug 780147:
331 * Patch for Bug 608235 ("Incorrect error message for undefined[undefined]")
332 * Patch for Bug 784358 ("Defining const variable within eval() throws redeclaration error")
333
334 Evgeny Shepelyuk (1):
335
336 * fix xmlbeans url
337
338 Gregory Brail (10):
339
340 * Add JUnit-based benchmarks that we can automate in Jenkins.
341 * Extract zipped-up tests into a directory and check them in that way.
342 * Extracted the stuff that was formerly in testsrc/tests.tar.gz.
343 * Add XML output for EMMA coverage reports.
344 * Fix character encoding tests to work on Mac.
345 * Add output to benchmarks that can work with the Jenkins "Measurement Plots" plugin. This replaces the former output from the "SunSpider" and "V8" benchmarks.
346 * Add files for Maven deployment.
347 * README update.
348 * Update README for other tests.
349 * Fix E4X test 13.4.4.24 which was failing on Java 8 due to different HashMap iteration ordering.
350
351 Hannes Wallnoefer (8):
352
353 * Unwrap Synchronizer in BaseFunction.toSource().
354 * Override ScriptableObject.isEmpty in NativeArray
355 * Reduce concurrency level / memory footprint in concurrent class cache hash maps
356 * Return null for unhandled JavaAdapter methods
357 * Make JavaAdapter work with abstract base classes and protected constructors
358 * Change build version to 1_7R5pre
359 * Extract code to create JS error from Java exception into separate ScriptRuntime method
360 * Reduce invocation magic in ShellConsole JLine support classes
361
362 Kyle Cronin (2):
363
364 * Patch for Bug 827538
365 * Patch for Bug 738388
366
367 <!--- Start with " git shortlog --no-merges Rhino1_7R4_RELEASE.. | sed 's/^ /*/'" -->