Make sure files end with exactly one new line and police this in presubmit.
authoryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 22 Nov 2013 13:50:39 +0000 (13:50 +0000)
committeryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 22 Nov 2013 13:50:39 +0000 (13:50 +0000)
The changes are (excluding presubmit.py) mechanical. I added the following
lines after the check and iterated the presubmit script until all errors
went away:

f = open(name, "w");
if contents.endswith('\n\n'):
  f.write(contents[0:-1])
else:
  f.write(contents + '\n')

R=jkummerow@chromium.org

Review URL: https://codereview.chromium.org/82803005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18017 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

390 files changed:
build/all.gyp
src/allocation-tracker.h
src/arraybuffer.js
src/checks.cc
src/harmony-array.js
src/harmony-string.js
src/heap-snapshot-generator-inl.h
src/heap-snapshot-generator.h
src/ia32/simulator-ia32.cc
src/x64/simulator-x64.cc
test/cctest/test-unbound-queue.cc
test/cctest/test-unique.cc
test/intl/collator/sr-sort.js
test/intl/overrides/caching.js
test/message/isvar.js
test/message/paren_in_arg_string.js
test/message/replacement-marker-as-argument.js
test/message/single-function-literal.js
test/mjsunit/arguments-load-across-eval.js
test/mjsunit/arguments-read-and-assignment.js
test/mjsunit/arguments.js
test/mjsunit/array-iteration.js
test/mjsunit/array-non-smi-length.js
test/mjsunit/array-tostring.js
test/mjsunit/bugs/bug-1344252.js
test/mjsunit/bugs/bug-proto.js
test/mjsunit/closures.js
test/mjsunit/compare-character.js
test/mjsunit/compare-nan.js
test/mjsunit/compiler/control-flow-1.js
test/mjsunit/compiler/inline-throw.js
test/mjsunit/compiler/lazy-const-lookup.js
test/mjsunit/compiler/optimized-closures.js
test/mjsunit/compiler/regress-1394.js
test/mjsunit/compiler/regress-3260426.js
test/mjsunit/compiler/regress-closures-with-eval.js
test/mjsunit/compiler/regress-inline-callfunctionstub.js
test/mjsunit/compiler/regress-toint32.js
test/mjsunit/compiler/rotate.js
test/mjsunit/const-declaration.js
test/mjsunit/cyclic-array-to-string.js
test/mjsunit/debug-breakpoints.js
test/mjsunit/debug-constructor.js
test/mjsunit/debug-evaluate-const.js
test/mjsunit/debug-function-scopes.js
test/mjsunit/debug-ignore-breakpoints.js
test/mjsunit/debug-liveedit-3.js
test/mjsunit/debug-liveedit-check-stack.js
test/mjsunit/debug-liveedit-compile-error.js
test/mjsunit/debug-liveedit-diff.js
test/mjsunit/debug-liveedit-utils.js
test/mjsunit/debug-mirror-cache.js
test/mjsunit/debug-setbreakpoint.js
test/mjsunit/debug-stepin-positions.js
test/mjsunit/debug-stepout-scope-part1.js
test/mjsunit/elide-double-hole-check-9.js
test/mjsunit/enumeration-order.js
test/mjsunit/error-accessors.js
test/mjsunit/eval-stack-trace.js
test/mjsunit/extra-arguments.js
test/mjsunit/fast-array-length.js
test/mjsunit/fast-literal.js
test/mjsunit/fun-name.js
test/mjsunit/function.js
test/mjsunit/get-prototype-of.js
test/mjsunit/getter-in-value-prototype.js
test/mjsunit/global-load-from-eval-in-with.js
test/mjsunit/global-load-from-nested-eval.js
test/mjsunit/harmony/array-find.js
test/mjsunit/harmony/array-findindex.js
test/mjsunit/harmony/collections.js
test/mjsunit/harmony/string-repeat.js
test/mjsunit/large-object-literal.js
test/mjsunit/local-load-from-eval.js
test/mjsunit/math-pow.js
test/mjsunit/math-round.js
test/mjsunit/math-sqrt.js
test/mjsunit/mirror-boolean.js
test/mjsunit/mirror-undefined.js
test/mjsunit/mjsunit.js
test/mjsunit/mul-exhaustive-part6.js
test/mjsunit/nans.js
test/mjsunit/never-optimize.js
test/mjsunit/new.js
test/mjsunit/newline-in-string.js
test/mjsunit/number-tostring-func.js
test/mjsunit/number-tostring-small.js
test/mjsunit/number-tostring.js
test/mjsunit/object-literal-conversions.js
test/mjsunit/object-literal-gc.js
test/mjsunit/packed-elements.js
test/mjsunit/property-object-key.js
test/mjsunit/prototype.js
test/mjsunit/regexp-indexof.js
test/mjsunit/regexp-results-cache.js
test/mjsunit/regress/regress-1017.js
test/mjsunit/regress/regress-1039610.js
test/mjsunit/regress/regress-105.js
test/mjsunit/regress/regress-1066899.js
test/mjsunit/regress/regress-1092.js
test/mjsunit/regress/regress-1099.js
test/mjsunit/regress/regress-1112.js
test/mjsunit/regress/regress-1114040.js
test/mjsunit/regress/regress-1117.js
test/mjsunit/regress/regress-1178598.js
test/mjsunit/regress/regress-1181.js
test/mjsunit/regress/regress-1246.js
test/mjsunit/regress/regress-1254366.js
test/mjsunit/regress/regress-131994.js
test/mjsunit/regress/regress-137.js
test/mjsunit/regress/regress-1546.js
test/mjsunit/regress/regress-1591.js
test/mjsunit/regress/regress-1647.js
test/mjsunit/regress/regress-166379.js
test/mjsunit/regress/regress-1748.js
test/mjsunit/regress/regress-1757.js
test/mjsunit/regress/regress-1853.js
test/mjsunit/regress/regress-186.js
test/mjsunit/regress/regress-1919169.js
test/mjsunit/regress/regress-193.js
test/mjsunit/regress/regress-20070207.js
test/mjsunit/regress/regress-2027.js
test/mjsunit/regress/regress-2119.js
test/mjsunit/regress/regress-2170.js
test/mjsunit/regress/regress-2172.js
test/mjsunit/regress/regress-2250.js
test/mjsunit/regress/regress-2285.js
test/mjsunit/regress/regress-2289.js
test/mjsunit/regress/regress-231.js
test/mjsunit/regress/regress-2374.js
test/mjsunit/regress/regress-237617.js
test/mjsunit/regress/regress-2419.js
test/mjsunit/regress/regress-2438.js
test/mjsunit/regress/regress-2444.js
test/mjsunit/regress/regress-246.js
test/mjsunit/regress/regress-2570.js
test/mjsunit/regress/regress-2596.js
test/mjsunit/regress/regress-2624.js
test/mjsunit/regress/regress-2671-1.js
test/mjsunit/regress/regress-2671.js
test/mjsunit/regress/regress-2690.js
test/mjsunit/regress/regress-298269.js
test/mjsunit/regress/regress-2984.js
test/mjsunit/regress/regress-317.js
test/mjsunit/regress/regress-319722-ArrayBuffer.js
test/mjsunit/regress/regress-45469.js
test/mjsunit/regress/regress-483.js
test/mjsunit/regress/regress-588599.js
test/mjsunit/regress/regress-619.js
test/mjsunit/regress/regress-670147.js
test/mjsunit/regress/regress-674753.js
test/mjsunit/regress/regress-675.js
test/mjsunit/regress/regress-678525.js
test/mjsunit/regress/regress-734862.js
test/mjsunit/regress/regress-74.js
test/mjsunit/regress/regress-753.js
test/mjsunit/regress/regress-806473.js
test/mjsunit/regress/regress-85177.js
test/mjsunit/regress/regress-892742.js
test/mjsunit/regress/regress-925537.js
test/mjsunit/regress/regress-94873.js
test/mjsunit/regress/regress-990205.js
test/mjsunit/regress/regress-995.js
test/mjsunit/regress/regress-998565.js
test/mjsunit/regress/regress-add-minus-zero.js
test/mjsunit/regress/regress-array-pop-nonconfigurable.js
test/mjsunit/regress/regress-binop-nosse2.js
test/mjsunit/regress/regress-builtin-array-op.js
test/mjsunit/regress/regress-crbug-158185.js
test/mjsunit/regress/regress-crbug-178790.js
test/mjsunit/regress/regress-crbug-18639.js
test/mjsunit/regress/regress-crbug-222893.js
test/mjsunit/regress/regress-crbug-233737.js
test/mjsunit/regress/regress-crbug-245480.js
test/mjsunit/regress/regress-crbug-259300.js
test/mjsunit/regress/regress-crbug-3184.js
test/mjsunit/regress/regress-frame-details-null-receiver.js
test/mjsunit/regress/regress-map-invalidation-1.js
test/mjsunit/regress/regress-seqstrsetchar-ex1.js
test/mjsunit/regress/regress-seqstrsetchar-ex2.js
test/mjsunit/regress/regress-seqstrsetchar-ex3.js
test/mjsunit/regress/regress-transcendental.js
test/mjsunit/simple-constructor.js
test/mjsunit/sparse-array.js
test/mjsunit/stack-traces-2.js
test/mjsunit/stack-traces-custom-lazy.js
test/mjsunit/store-dictionary.js
test/mjsunit/str-to-num.js
test/mjsunit/strict-equals.js
test/mjsunit/string-natives.js
test/mjsunit/string-replace-gc.js
test/mjsunit/string-search.js
test/mjsunit/string-slices.js
test/mjsunit/to-precision.js
test/mjsunit/tobool.js
test/mjsunit/tools/profile.js
test/mjsunit/touint32.js
test/mjsunit/transcendentals.js
test/mjsunit/try-finally-continue.js
test/mjsunit/unicode-string-to-number.js
test/mjsunit/unicode-test.js
test/mjsunit/with-value.js
test/preparser/non-use-strict-hex-escape.js
test/preparser/non-use-strict-octal-escape.js
test/preparser/non-use-strict-uhex-escape.js
test/preparser/nonstrict-arguments.js
test/preparser/nonstrict-eval.js
test/preparser/nonstrict-with.js
test/preparser/strict-const.js
test/preparser/strict-octal-indirect-regexp.js
test/preparser/strict-octal-number.js
test/preparser/strict-octal-regexp.js
test/preparser/strict-octal-string.js
test/preparser/strict-octal-use-strict-after.js
test/preparser/strict-octal-use-strict-before.js
test/preparser/strict-with.js
test/webkit/arguments-bad-index.js
test/webkit/concat-while-having-a-bad-time.js
test/webkit/dfg-abs-backwards-propagation.js
test/webkit/dfg-add-not-number.js
test/webkit/dfg-arguments-alias-escape.js
test/webkit/dfg-arguments-alias-one-block-overwrite.js
test/webkit/dfg-arguments-alias.js
test/webkit/dfg-arguments-mixed-alias.js
test/webkit/dfg-arguments-out-of-bounds.js
test/webkit/dfg-arith-add-overflow-check-elimination-predicted-but-not-proven-int.js
test/webkit/dfg-arith-add-overflow-check-elimination-tower-of-large-numbers.js
test/webkit/dfg-array-dead.js
test/webkit/dfg-array-length-dead.js
test/webkit/dfg-branch-logical-not-peephole-around-osr-exit.js
test/webkit/dfg-branch-not-fail.js
test/webkit/dfg-call-function-hit-watchpoint.js
test/webkit/dfg-call-method-hit-watchpoint.js
test/webkit/dfg-cfa-prove-put-by-id-simple-when-storing-to-specialized-function.js
test/webkit/dfg-cfg-simplify-eliminate-set-local-type-check-then-branch-not-null-and-decrement.js
test/webkit/dfg-cfg-simplify-eliminate-set-local-type-check-then-branch-not-null.js
test/webkit/dfg-cfg-simplify-eliminate-set-local-type-check-then-typeof.js
test/webkit/dfg-cfg-simplify-phantom-get-local-on-same-block-set-local.js
test/webkit/dfg-compare-final-object-to-final-object-or-other-when-both-proven-final-object.js
test/webkit/dfg-compare-final-object-to-final-object-or-other-when-proven-final-object.js
test/webkit/dfg-constant-fold-first-local-read-after-block-merge.js
test/webkit/dfg-constant-fold-logical-not-branch.js
test/webkit/dfg-constant-fold-misprediction.js
test/webkit/dfg-cse-cfa-discrepancy.js
test/webkit/dfg-cse-dead-get-scoped-var.js
test/webkit/dfg-dead-min-one-arg.js
test/webkit/dfg-dead-min-two-args.js
test/webkit/dfg-dead-speculation.js
test/webkit/dfg-dead-variable-on-exit.js
test/webkit/dfg-double-use-of-post-simplification-double-prediction.js
test/webkit/dfg-double-vote-fuzz.js
test/webkit/dfg-ensure-non-array-array-storage-on-window.js
test/webkit/dfg-get-by-val-clobber.js
test/webkit/dfg-getter-throw.js
test/webkit/dfg-getter.js
test/webkit/dfg-holy-put-by-val-interferes-with-get-array-length.js
test/webkit/dfg-inline-arguments-osr-exit-and-capture.js
test/webkit/dfg-inline-arguments-out-of-bounds.js
test/webkit/dfg-inline-arguments-use-directly-from-inlined-code.js
test/webkit/dfg-inline-arguments-use-from-all-the-places-broken.js
test/webkit/dfg-inline-arguments-use-from-all-the-places.js
test/webkit/dfg-inline-arguments-use-from-getter.js
test/webkit/dfg-inline-function-dot-caller.js
test/webkit/dfg-inline-unused-this-method-check.js
test/webkit/dfg-inline-unused-this.js
test/webkit/dfg-int-overflow-in-loop.js
test/webkit/dfg-int-overflow-large-constants-in-a-line.js
test/webkit/dfg-integer-optimization.js
test/webkit/dfg-intrinsic-side-effect-assignment-osr-exit.js
test/webkit/dfg-intrinsic-unused-this-method-check.js
test/webkit/dfg-intrinsic-unused-this.js
test/webkit/dfg-max-backwards-propagation.js
test/webkit/dfg-min-backwards-propagation.js
test/webkit/dfg-mispredict-variable-but-prove-int.js
test/webkit/dfg-mul-big-integer-with-small-integer-and-bitor.js
test/webkit/dfg-mul-big-integer-with-small-integer-and-detect-overflow.js
test/webkit/dfg-mul-big-integers.js
test/webkit/dfg-multi-basic-block-structure-clobber.js
test/webkit/dfg-multiply.js
test/webkit/dfg-negative-array-index.js
test/webkit/dfg-patchable-get-by-id-after-watchpoint.js
test/webkit/dfg-peephole-compare-final-object-to-final-object-or-other-when-both-proven-final-object.js
test/webkit/dfg-peephole-compare-final-object-to-final-object-or-other-when-proven-final-object.js
test/webkit/dfg-phantom-base.js
test/webkit/dfg-phantom-get-local.js
test/webkit/dfg-proto-access-inline-osr-exit.js
test/webkit/dfg-proven-sqrt-backwards-propagation.js
test/webkit/dfg-put-by-id-allocate-storage-polymorphic.js
test/webkit/dfg-put-by-id-allocate-storage.js
test/webkit/dfg-put-by-id-prototype-check.js
test/webkit/dfg-put-by-id-reallocate-storage-polymorphic.js
test/webkit/dfg-put-by-id-reallocate-storage.js
test/webkit/dfg-put-by-val-setter-then-get-by-val.js
test/webkit/dfg-put-scoped-var-backward-flow.js
test/webkit/dfg-sqrt-backwards-propagation.js
test/webkit/dfg-store-unexpected-value-into-argument-and-osr-exit.js
test/webkit/dfg-string-stricteq.js
test/webkit/dfg-tear-off-arguments-not-activation.js
test/webkit/dfg-tear-off-function-dot-arguments.js
test/webkit/dfg-to-string-on-cell.js
test/webkit/dfg-to-string-on-value.js
test/webkit/dfg-to-string-toString-becomes-bad-with-check-structure.js
test/webkit/dfg-to-string-toString-becomes-bad-with-dictionary-string-prototype.js
test/webkit/dfg-to-string-toString-becomes-bad.js
test/webkit/dfg-to-string-toString-in-string.js
test/webkit/dfg-to-string-valueOf-in-string.js
test/webkit/dfg-uint32-to-number-in-middle-of-copy-propagation.js
test/webkit/dfg-uint32-to-number-on-captured-variable.js
test/webkit/dfg-uint32-to-number-skip-then-exit.js
test/webkit/dfg-uint32-to-number.js
test/webkit/dfg-uint32array-overflow-constant.js
test/webkit/dfg-weak-js-constant-silent-fill.js
test/webkit/fast/js/JSON-parse-reviver.js
test/webkit/fast/js/deep-recursion-test.js
test/webkit/fast/js/function-decompilation-operators.js
test/webkit/fast/js/kde/Array.js
test/webkit/fast/js/kde/Boolean.js
test/webkit/fast/js/kde/Date-setYear.js
test/webkit/fast/js/kde/Error.js
test/webkit/fast/js/kde/GlobalObject.js
test/webkit/fast/js/kde/Number.js
test/webkit/fast/js/kde/Object.js
test/webkit/fast/js/kde/Prototype.js
test/webkit/fast/js/kde/RegExp.js
test/webkit/fast/js/kde/arguments-scope.js
test/webkit/fast/js/kde/assignments.js
test/webkit/fast/js/kde/cast.js
test/webkit/fast/js/kde/comment-1.js
test/webkit/fast/js/kde/comment-2.js
test/webkit/fast/js/kde/completion.js
test/webkit/fast/js/kde/conditional.js
test/webkit/fast/js/kde/constructor_length.js
test/webkit/fast/js/kde/crash-1.js
test/webkit/fast/js/kde/crash-2.js
test/webkit/fast/js/kde/delete.js
test/webkit/fast/js/kde/empty.js
test/webkit/fast/js/kde/encode_decode_uri.js
test/webkit/fast/js/kde/eval.js
test/webkit/fast/js/kde/evil-n.js
test/webkit/fast/js/kde/exception_propagation.js
test/webkit/fast/js/kde/exceptions.js
test/webkit/fast/js/kde/func-decl.js
test/webkit/fast/js/kde/inbuilt_function_proto.js
test/webkit/fast/js/kde/iteration.js
test/webkit/fast/js/kde/j-comment-3.js
test/webkit/fast/js/kde/j-comment-4.js
test/webkit/fast/js/kde/literals.js
test/webkit/fast/js/kde/lval-exceptions.js
test/webkit/fast/js/kde/math.js
test/webkit/fast/js/kde/md5-1.js
test/webkit/fast/js/kde/md5-2.js
test/webkit/fast/js/kde/object_prototype.js
test/webkit/fast/js/kde/object_prototype_tostring.js
test/webkit/fast/js/kde/operators.js
test/webkit/fast/js/kde/parse.js
test/webkit/fast/js/kde/prototype_length.js
test/webkit/fast/js/kde/prototype_proto.js
test/webkit/fast/js/kde/scope.js
test/webkit/fast/js/kde/statements.js
test/webkit/fast/js/kde/var_decl_init.js
test/webkit/fast/js/string-anchor.js
test/webkit/fast/js/string-fontcolor.js
test/webkit/fast/js/string-fontsize.js
test/webkit/fast/js/string-link.js
test/webkit/fast/js/toString-number.js
test/webkit/fast/regex/assertion.js
test/webkit/fast/regex/constructor.js
test/webkit/fast/regex/dotstar.js
test/webkit/fast/regex/parentheses.js
test/webkit/function-dot-apply-replace-base.js
test/webkit/get-by-pname-non-final-object.js
test/webkit/get-by-pname-that-looks-like-a-patchable-get-by-val.js
test/webkit/get-by-pname.js
test/webkit/indexed-setter-on-global-object.js
test/webkit/new-array-double-with-holes.js
test/webkit/regexp-in-and-foreach-handling.js
test/webkit/regexp-zero-length-alternatives.js
test/webkit/resolve-arguments-from-scope.js
test/webkit/sort-with-side-effecting-comparisons.js
test/webkit/stack-unwinding.js
test/webkit/string-trim.js
test/webkit/throw-from-finally.js
test/webkit/try-catch-try-try-catch-try-finally-return-catch-finally.js
test/webkit/try-try-return-finally-finally.js
test/webkit/var-declarations-zero-width.js
tools/consarray.js
tools/generate-trig-table.py
tools/presubmit.py
tools/testrunner/local/junit_output.py
tools/tickprocessor.js

index aa8e369..5fbd8c2 100644 (file)
@@ -22,4 +22,3 @@
     }
   ]
 }
-
index 617cf90..8791b51 100644 (file)
@@ -135,4 +135,3 @@ class AllocationTracker {
 } }  // namespace v8::internal
 
 #endif  // V8_ALLOCATION_TRACKER_H_
-
index c5c98db..6125f0f 100644 (file)
@@ -107,5 +107,3 @@ function SetUpArrayBuffer() {
 }
 
 SetUpArrayBuffer();
-
-
index e08cd7c..a4514bf 100644 (file)
@@ -132,4 +132,3 @@ namespace v8 { namespace internal {
   intptr_t HeapObjectTagMask() { return kHeapObjectTagMask; }
 
 } }  // namespace v8::internal
-
index e440299..a9cc3b8 100644 (file)
@@ -121,4 +121,4 @@ function HarmonyArrayExtendArrayPrototype() {
   ));
 }
 
-HarmonyArrayExtendArrayPrototype();
\ No newline at end of file
+HarmonyArrayExtendArrayPrototype();
index a5c6f4e..8e4b9a4 100644 (file)
@@ -151,4 +151,4 @@ function ExtendStringPrototype() {
   ));
 }
 
-ExtendStringPrototype();
\ No newline at end of file
+ExtendStringPrototype();
index 1a878c6..43002d2 100644 (file)
@@ -85,4 +85,3 @@ int V8HeapExplorer::GetGcSubrootOrder(HeapObject* subroot) {
 } }  // namespace v8::internal
 
 #endif  // V8_HEAP_SNAPSHOT_GENERATOR_INL_H_
-
index b8199ba..c69d5e5 100644 (file)
@@ -704,4 +704,3 @@ class HeapSnapshotJSONSerializer {
 } }  // namespace v8::internal
 
 #endif  // V8_HEAP_SNAPSHOT_GENERATOR_H_
-
index ab81693..b6f2847 100644 (file)
@@ -27,4 +27,3 @@
 
 
 // Since there is no simulator for the ia32 architecture this file is empty.
-
index 209aa2d..448b025 100644 (file)
@@ -24,4 +24,3 @@
 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
index 6d02fff..dd9b9c1 100644 (file)
@@ -74,4 +74,3 @@ TEST(MultipleRecords) {
   }
   CHECK(cq.IsEmpty());
 }
-
index 0936908..ad14ff1 100644 (file)
@@ -546,4 +546,3 @@ TEST(UniqueSet_UnionExhaustive) {
     }
   }
 }
-
index 53c784c..b7e6f30 100644 (file)
@@ -43,4 +43,3 @@ assertEquals('Стара Планина', result[6]);
 assertEquals('ћук', result[7]);
 assertEquals('чука', result[8]);
 assertEquals('џак', result[9]);
-
index 5ff3c39..abcd640 100644 (file)
@@ -57,4 +57,3 @@ collatorTime = endTime.getTime() - startTime.getTime();
 assertTrue(collatorTime < cachedTime);
 // Non-cached time is much slower, measured to 12.5 times.
 assertTrue(cachedTime < nonCachedTime);
-
index 67793a0..fedf9d5 100644 (file)
@@ -28,4 +28,4 @@
 // Flags: --allow-natives-syntax
 var x;
 %IS_VAR(x);
-%IS_VAR(x+x);
\ No newline at end of file
+%IS_VAR(x+x);
index bab762a..83ba7c0 100644 (file)
@@ -26,4 +26,4 @@
 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 var paren_in_arg_string_good = new Function('x', 'return;');
-var paren_in_arg_string_bad = new Function(')', 'return;');
\ No newline at end of file
+var paren_in_arg_string_bad = new Function(')', 'return;');
index 9036654..22a68ec 100644 (file)
@@ -28,4 +28,4 @@
 "use strict";
 
 var o = { get "%3" (){} };
-o["%3"] = 10;
\ No newline at end of file
+o["%3"] = 10;
index 3720637..96d3bd6 100644 (file)
@@ -29,4 +29,4 @@
 var single_function_good = "(function() { return 5; })";
 %CompileString(single_function_good, true);
 var single_function_bad = "(function() { return 5; })();";
-%CompileString(single_function_bad, true);
\ No newline at end of file
+%CompileString(single_function_bad, true);
index e97c113..295b62c 100644 (file)
@@ -82,5 +82,3 @@ function testShadowing(x, h) {
 }
 
 testShadowing(1, function() { return 2; });
-
-
index c5d34bf..fba052b 100644 (file)
@@ -161,4 +161,4 @@ function weirdargs(a,b,c) { if (!a) return arguments;
 var args1 = weirdargs(false, null, 40);
 var res = weirdargs(true, args1, 15);
 assertEquals(40, res[0], "return old args element");
-assertEquals(15, res[1], "return own args element");
\ No newline at end of file
+assertEquals(15, res[1], "return own args element");
index 78b7722..56c1d72 100644 (file)
@@ -187,4 +187,4 @@ function arg_del(x) { return delete arguments[x]; }
 function arg_set(x) { return (arguments[x] = 117); }
 assertEquals(undefined, arg_get(0xFFFFFFFF));
 assertEquals(true, arg_del(0xFFFFFFFF));
-assertEquals(117, arg_set(0xFFFFFFFF));
\ No newline at end of file
+assertEquals(117, arg_set(0xFFFFFFFF));
index 033bb54..d11f984 100644 (file)
   assertEquals(2, count);
 
 })();
-
index 23a25ee..11277af 100644 (file)
@@ -43,4 +43,3 @@ function TestNonSmiArrayLength() {
 }
 
 TestNonSmiArrayLength();
-
index 6708657..5be3d50 100644 (file)
@@ -156,4 +156,4 @@ for (var i = 0; i < 3; i++) {
       }});
 }
 Number.prototype.arrayToLocaleString = Array.prototype.toLocaleString;
-assertEquals("42,42,42", (42).arrayToLocaleString());
\ No newline at end of file
+assertEquals("42,42,42", (42).arrayToLocaleString());
index 1723834..747ce19 100644 (file)
@@ -76,4 +76,3 @@ Object.prototype.__defineSetter__('z', function(value) { result_z = value; });
 o2.z = 27;
 assertEquals(27, result_z);
 assertTrue(typeof o2.z == 'undefined');
-
index 149088e..5638336 100644 (file)
@@ -59,4 +59,3 @@ assertSame(undefined, Realm.eval(realmB, "Realm.shared.__proto__"));
 Realm.eval(realmB, "Realm.shared.__proto__ = {c: 3}");
 assertSame(1, o.a);
 assertSame(undefined, o.c);
-
index 7c11971..5ce26ca 100644 (file)
@@ -44,4 +44,3 @@ function test(n) {
 test(1);
 test(42);
 test(239);
-
index cabe013..8c812ee 100644 (file)
@@ -47,4 +47,3 @@ for (var i in a) {
   assertEquals(f < x, 'f' < x, ">r" + x);
   assertEquals(f <= x, 'f' <= x, ">=r" + x);
 }
-
index c4f7817..a4224ff 100644 (file)
@@ -63,4 +63,3 @@ for (var i in b) {
       "assertFalse(" + x + " >= NaN, '' + " + x + " + ' >= NaN');\n";
   eval(program);
 }
-
index 973d9b6..ca7ad87 100644 (file)
@@ -52,4 +52,4 @@ function g1(x, y) {
 }
 
 assertTrue(g1(0, 0));
-assertFalse(g1(0, 1));
\ No newline at end of file
+assertFalse(g1(0, 1));
index e3aab39..099b9d3 100644 (file)
@@ -66,4 +66,3 @@ try {
 } catch(e) {
   assertEquals("wow", e);
 }
-
index eaf75f8..499e4d5 100644 (file)
@@ -51,7 +51,3 @@ f();
 assertEquals(42, a[0]);
 assertEquals(49, a[7]);
 assertEquals(-19, a[23]);
-
-
-
-
index b1ce192..fbf4357 100644 (file)
@@ -56,4 +56,3 @@ for (var i = 0; i < 3; i++) assertEquals(i, f(i));
 
 assertEquals(0, f(0));
 assertEquals(1, f(1));
-
index dfef424..457064d 100644 (file)
@@ -33,4 +33,3 @@ function always_false() {}
 function test() { return always_false() ? 0 : 1; }
 
 assertEquals(1, test());
-
index 57afb16..d95d128 100644 (file)
@@ -53,4 +53,4 @@ for (var n = 0; n < 5; n++) {
   withEval(expr, function(a) { return a; });
 }
 %OptimizeFunctionOnNextCall(withEval);
-withEval(expr, function(a) { return a; });
\ No newline at end of file
+withEval(expr, function(a) { return a; });
index 54c2f76..75892d4 100644 (file)
@@ -42,4 +42,3 @@ assertEquals(G, f(G));
 assertEquals(G, f(G));
 %OptimizeFunctionOnNextCall(f);
 assertEquals(G, f(G));
-
index 2f4bc5a..1c81e49 100644 (file)
@@ -306,5 +306,3 @@ assertEquals(ROR4(0xFFFFFFFF, 40), ROR4_sa40(0xFFFFFFFF));
 assertEquals(ROR4(0xFFFFFFFF, 40), ROR4_sa40(0xFFFFFFFF));
 %OptimizeFunctionOnNextCall(ROR4_sa40);
 assertEquals(ROR4(0xFFFFFFFF, 40), ROR4_sa40(0xFFFFFFFF));
-
-
index 0a2d6e3..ad77743 100644 (file)
@@ -62,4 +62,3 @@ a1.push(a2);
 assertEquals("", a1.toString());
 assertEquals("", a1.toLocaleString());
 assertEquals("", a1.join());
-
index 148acfc..a04fac5 100644 (file)
@@ -222,4 +222,3 @@ for(var i = 0; i < scenario.length; i++) {
       Debug.BreakPositionAlignment.BreakPosition).indexOf(scenario[i][1]) > 0);
   Debug.clearBreakPoint(bp1);
 }
-
index 38028aa..6d4e7f3 100644 (file)
@@ -75,4 +75,4 @@ Debug.clearStepping();  // Clear stepping as the listener leaves it on.
 assertEquals("bbccdcb", call_graph);
 
 // Get rid of the debug event listener.
-Debug.setListener(null);
\ No newline at end of file
+Debug.setListener(null);
index cb9695b..7fad483 100644 (file)
@@ -118,4 +118,3 @@ Debug.setListener(null);
 
 assertFalse(exception, "exception in listener")
 assertTrue(listenerComplete);
-
index 4262b95..b51e8b4 100644 (file)
@@ -159,4 +159,3 @@ CheckNoScopeVisible(Function.toString);
 
 // This getter is known to be implemented as closure.
 CheckNoScopeVisible(new Error().__lookupGetter__("stack"));
-
index 96c6044..3cb283b 100644 (file)
@@ -86,4 +86,3 @@ f();
 assertEquals(5, break_point_hit_count);
 f();
 assertEquals(6, break_point_hit_count);
-
index b210657..023c94e 100644 (file)
@@ -66,5 +66,3 @@ assertEquals(8, z6());
 var z100 = Factory(100)();
 
 assertEquals(102, z100());
-
-
index df9e1cf..6948a70 100644 (file)
@@ -138,4 +138,3 @@ test = new TestBase("Test with C++ frame above ChooseAnimal frame");
 exception_holder = {};
 assertEquals("Cat", test.ChooseAnimal(WrapInNativeCall(WrapInDebuggerCall(WrapInCatcher(test.ScriptChanger, exception_holder)))));
 assertTrue(!!exception_holder[0]);
-
index 2fd6aed..99ac031 100644 (file)
@@ -56,5 +56,3 @@ assertEquals("Unexpected token )",
     caught_exception.details.syntaxErrorMessage);
 
 assertEquals(2, caught_exception.details.position.start.line);
-
-
index 0d26a30..2fd2497 100644 (file)
@@ -110,4 +110,3 @@ CheckCompare(
     "yesterday\nall\nmy\ntroubles\nseemed\nso\nfar\naway",
     "yesterday\nall\nmy\ntroubles\nseemed\nso\n"
 );
-
index c892ec9..8521a6d 100644 (file)
@@ -93,5 +93,3 @@ assertEquals(69, MultiChunkTranslator.Translate(59));
 assertEquals(2010, MultiChunkTranslator.Translate(60, Return2010));
 assertEquals(70, MultiChunkTranslator.Translate(70));
 assertEquals(75, MultiChunkTranslator.Translate(75));
-
-
index 5b85306..07aaf88 100644 (file)
@@ -82,4 +82,3 @@ debugger;
 assertEquals([], listenerExceptions, "Exception in listener");
 // Make sure that the debug event listener vas invoked.
 assertEquals(2, listenerCallCount, "Listener not called");
-
index 8531c4e..bc23021 100644 (file)
@@ -214,4 +214,3 @@ function SetBreakpointInI1Script() {
 // moment. Since there's no way of simply getting the pointer to the function,
 // we run this code while the script function is being activated on stack.
 eval('SetBreakpointInI1Script()\nfunction i1(){}\n\n\n\nfunction i2(){}\n');
-
index e6d8204..722df53 100644 (file)
@@ -221,5 +221,3 @@ var fun = (function(p) {
   };
 })(Object);
 TestCaseWithDebugger(fun);
-
-
index f2f9d91..f49b1a0 100644 (file)
@@ -187,4 +187,4 @@ function nop() {}
 
 
 // With block as the last(!) statement in global code.
-with ({}) { debugger; }
\ No newline at end of file
+with ({}) { debugger; }
index 88bbc7e..bbcbfb2 100644 (file)
@@ -46,4 +46,3 @@ assertEquals(0.5, f(arr, 0));
 assertEquals(0.5, f(arr, 0));
 do_set = true;
 assertEquals(2, f(arr, 1));
-
index a328121..70942ee 100644 (file)
@@ -103,7 +103,3 @@ var expected = ['23', '42',  // indexed from 'o'
 var actual = [];
 for (var p in o) actual.push(p);
 assertArrayEquals(expected, actual);
-
-
-
-
index 9581050..cdaf080 100644 (file)
@@ -51,4 +51,3 @@ assertEquals("x is not defined",
 o.message = "another message";
 assertEquals("another message", o.message);
 assertEquals("x is not defined", error2.message);
-
index d83b84c..f95e50f 100644 (file)
@@ -201,4 +201,3 @@ try {
   [true, false].verifyUndefined(frames, "getFileName");
   ["eval at <anonymous> ("].verifyContains(frames, "getEvalOrigin");
 }
-
index 186277a..2906367 100644 (file)
@@ -50,5 +50,3 @@ for (var i = 0; i < 25; i++) {
   }
   assertEquals(expected, f.apply(null, array), String(i));
 }
-
-
index 42f2c38..3917d97 100644 (file)
@@ -34,4 +34,3 @@ var a = [0, 1, 2, 3, 4, 5];
 assertTrue(%HasFastSmiElements(a));
 a.length = (1 << 30);
 assertFalse(%HasFastSmiElements(a));
-
index 8e53244..4fd92c4 100644 (file)
@@ -37,6 +37,3 @@ f(); f(); f();
 for (var i=0; i<50; i++) {
   f();
 }
-
-
-
index 676daaa..1688438 100644 (file)
@@ -31,4 +31,3 @@ function strip(s) {
 
 assertEquals('function(){}', strip((function () { }).toString()));
 assertEquals('functionanonymous(){}', strip(new Function().toString()));
-
index b5e83db..5c33762 100644 (file)
@@ -80,4 +80,3 @@ assertEquals(42, f(2, 21));
 f = new Function(x, y, z);
 assertEquals(25, f(5, 5));
 assertEquals(42, f(2, 21));
-
index 6475bde..c2a492a 100644 (file)
@@ -65,4 +65,3 @@ GetPrototypeOfObject(y);
 GetPrototypeOfObject({x:5});
 GetPrototypeOfObject(F);
 GetPrototypeOfObject(RegExp);
-
index abe2cb1..8357106 100644 (file)
@@ -32,4 +32,3 @@
 
 String.prototype.__defineGetter__('x', function() { return this; });
 assertEquals(Object('asdf'), 'asdf'.x);
-
index d733f6c..a41ad7e 100644 (file)
@@ -56,4 +56,3 @@ test({ y: 42 }, "function f() { eval('1'); assertEquals(27, x) }; f();");
 // in the eval scopes.  Deeper nesting this time.
 test({ x: 42 }, "function f() { function g() { eval('1'); assertEquals(42, x) }; g() }; f();");
 test({ y: 42 }, "function f() { function g() { eval('1'); assertEquals(27, x) }; g() }; f();");
-
index 3c7ff75..9c9b015 100644 (file)
@@ -59,8 +59,3 @@ function testEvalDontShadow(source) {
   eval('eval(' + source +')');
 }
 testEvalDontShadow('assertEquals(42, x)');
-
-
-
-
-
index 906c9cd..9f5750e 100644 (file)
@@ -277,4 +277,4 @@ assertThrows('Array.prototype.find.apply({}, false, [])', TypeError);
 assertThrows('Array.prototype.find.apply({}, "", [])', TypeError);
 assertThrows('Array.prototype.find.apply({}, {}, [])', TypeError);
 assertThrows('Array.prototype.find.apply({}, [], [])', TypeError);
-assertThrows('Array.prototype.find.apply({}, /\d+/, [])', TypeError);
\ No newline at end of file
+assertThrows('Array.prototype.find.apply({}, /\d+/, [])', TypeError);
index 928cad7..a33849d 100644 (file)
@@ -277,4 +277,4 @@ assertThrows('Array.prototype.findIndex.apply({}, false, [])', TypeError);
 assertThrows('Array.prototype.findIndex.apply({}, "", [])', TypeError);
 assertThrows('Array.prototype.findIndex.apply({}, {}, [])', TypeError);
 assertThrows('Array.prototype.findIndex.apply({}, [], [])', TypeError);
-assertThrows('Array.prototype.findIndex.apply({}, /\d+/, [])', TypeError);
\ No newline at end of file
+assertThrows('Array.prototype.findIndex.apply({}, /\d+/, [])', TypeError);
index 174d3d1..04a5cdc 100644 (file)
@@ -483,4 +483,4 @@ for (var i = 9; i >= 0; i--) {
   assertTrue(w.has(k));
   w.clear();
   assertFalse(w.has(k));
-})();
\ No newline at end of file
+})();
index 182e5c0..761089b 100644 (file)
@@ -71,4 +71,4 @@ var myobj = {
   repeat : String.prototype.repeat
 };
 assertEquals("abc", myobj.repeat(1));
-assertEquals("abcabc", myobj.repeat(2));
\ No newline at end of file
+assertEquals("abcabc", myobj.repeat(2));
index 70a2769..47ba56e 100644 (file)
@@ -53,4 +53,3 @@ var sizes = [0, 1, 2, 100, 200, 400, 1000];
 for (var i = 0; i < sizes.length; i++) {
   testLiteral(sizes[i]);
 }
-
index 0fdac9a..e07cd0d 100644 (file)
@@ -36,4 +36,3 @@ test("assertEquals(27, x);");
 test("(function() { assertEquals(27, x) })();");
 test("(function() { var y = 42; eval('1'); assertEquals(42, y); })();");
 test("(function() { var y = 42; eval('var y = 2; var z = 2;'); assertEquals(2, y); })();");
-
index fb5f8a1..ffbf418 100644 (file)
@@ -170,4 +170,4 @@ function test() {
 test();
 test();
 %OptimizeFunctionOnNextCall(test);
-test();
\ No newline at end of file
+test();
index 102c970..7b87c07 100644 (file)
@@ -170,5 +170,3 @@ testRound(min_smi31, min_smi31 - 0.5);
 testRound(min_smi31 + 1, min_smi31 + 0.5);
 testRound(min_smi32, min_smi32 - 0.5);
 testRound(min_smi32 + 1, min_smi32 + 0.5);
-
-
index 43fbf6b..d5de2e9 100644 (file)
@@ -50,4 +50,3 @@ test(-0, -0);
 test(Infinity, Infinity);
 // -Infinity is smaller than 0 so it should return NaN
 test(NaN, -Infinity);
-
index 311c781..bbcec73 100644 (file)
@@ -56,4 +56,4 @@ function testBooleanMirror(b) {
 
 // Test all boolean values.
 testBooleanMirror(true);
-testBooleanMirror(false);
\ No newline at end of file
+testBooleanMirror(false);
index 7f63239..1d54b51 100644 (file)
@@ -47,4 +47,4 @@ assertEquals('undefined', mirror.toText());
 
 // Parse JSON representation and check.
 var fromJSON = eval('(' + json + ')');
-assertEquals('undefined', fromJSON.type);
\ No newline at end of file
+assertEquals('undefined', fromJSON.type);
index e5fb6c2..5f03774 100644 (file)
@@ -393,4 +393,3 @@ var assertUnoptimized;
   }
 
 })();
-
index 91cb798..fb2b2ce 100644 (file)
@@ -551,4 +551,4 @@ f(281475001876479, 8388609);
 f(562949903089665, 16777215);
 f(562949936644096, 16777216);
 f(562949970198527, 16777217);
-f(1125899839733761, 33554431);
\ No newline at end of file
+f(1125899839733761, 33554431);
index d212afd..987ad6e 100644 (file)
@@ -97,7 +97,3 @@ function TestFloatQuietNan() {
 }
 
 TestFloatQuietNan();
-
-
-
-
index 55b1f11..643588e 100644 (file)
@@ -60,4 +60,4 @@ if (%GetOptimizationStatus(o1) != 4) {
   // 2 => not optimized.
   assertUnoptimized(u1);
   assertOptimized(u2);
-}
\ No newline at end of file
+}
index 1062628..ca098a1 100644 (file)
@@ -53,4 +53,3 @@ x = new String('foo');
 assertTrue(x === new Construct(x));
 x = function() { };
 assertTrue(x === new Construct(x));
-
index 8c3ff86..e71d8cf 100644 (file)
@@ -42,5 +42,3 @@ assertEquals('asdfasdf', eval(code));
 // Allow LF+CR in multiline string literals.
 code = "'asdf\\" + String.fromCharCode(0xA) + String.fromCharCode(0xD) + "asdf'";
 assertEquals('asdfasdf', eval(code));
-
-
index c64706e..4fc97e5 100644 (file)
@@ -362,6 +362,3 @@ testToPrecision("-1.234e+4", Number(-12344.67), (4));
 // dtoa does not do this in its original form.
 assertEquals("1.3", 1.25.toPrecision(2), "1.25.toPrecision(2)");
 assertEquals("1.4", 1.35.toPrecision(2), "1.35.toPrecision(2)");
-
-
-
index dbd2b59..068b3a4 100644 (file)
@@ -392,4 +392,3 @@ Number(-12344.67).toPrecision(4);
 (-91.1234).toPrecision(6);
 (-91.1234).toPrecision(7);
 (-91.1234).toPrecision(8);
-
index 35e77e2..55655f4 100644 (file)
@@ -335,6 +335,3 @@ assertEquals("-1.234e+4", Number(-12344.67).toPrecision(4));
 // dtoa does not do this in its original form.
 assertEquals("1.3", 1.25.toPrecision(2), "1.25.toPrecision(2)");
 assertEquals("1.4", 1.35.toPrecision(2), "1.35.toPrecision(2)");
-
-
-
index 742f814..7db2cf5 100644 (file)
@@ -43,4 +43,3 @@ var test6 = { 17.31: function() {}, "17.31": 7 };
 
 assertEquals(7, test5[13]);
 assertEquals(7, test6[17.31]);
-
index b9d6285..ddbeef6 100644 (file)
@@ -63,4 +63,3 @@ var sizes = [0, 1, 2, 100, 200, 400, 1000];
 for (var i = 0; i < sizes.length; i++) {
   testLiteral(sizes[i]);
 }
-
index cfcdf80..4a87373 100644 (file)
@@ -109,4 +109,3 @@ if (has_packed_elements) {
   test_with_optimization(test5);
   test_with_optimization(test6);
 }
-
index 5eb1e1b..3556cb9 100644 (file)
@@ -33,4 +33,3 @@ object[key] = 87;
 assertEquals(87, object[key]);
 object[key]++;
 assertEquals(88, object[key]);
-
index bfc1a79..a953422 100644 (file)
@@ -89,5 +89,3 @@ var test = new Object;
 test.__proto__ = (new Array()).__proto__;
 test.length = 14;
 assertEquals(14, test.length);
-
-
index a504dd8..09f2fec 100644 (file)
@@ -74,4 +74,4 @@ CheckMatch(/a(.)/g, "xyzzyabxyzzyacxyzzy", [[5, 2], [12, 2]]);
 
 CheckMatch(/a|(?:)/g, "aba", [[0, 1], [1, 0], [2, 1], [3, 0]]);
 CheckMatch(/a|(?:)/g, "baba", [[0, 0], [1, 1], [2, 0], [3, 1], [4, 0]]);
-CheckMatch(/a|(?:)/g, "bab", [[0, 0], [1, 1], [2, 0], [3, 0]]);
\ No newline at end of file
+CheckMatch(/a|(?:)/g, "bab", [[0, 0], [1, 1], [2, 0], [3, 0]]);
index 7ee8c3f..9de8661 100644 (file)
@@ -75,4 +75,3 @@ assertEquals("Friends,", words[0]);
 words[0] = "Enemies,";
 words = string.split(" ");
 assertEquals("Friends,", words[0]);
-
index 3daf542..440449a 100644 (file)
@@ -33,4 +33,3 @@
 // to store the 33rd character. This fails an ASSERT in debug mode.
 
 assertEquals(33, "12345678901234567890123456789012\u2028".length);
-
index fd5c549..757801f 100644 (file)
@@ -26,4 +26,4 @@
 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 // Make sure that the Debug object does not return to the global object
-assertTrue(typeof(Debug) === 'undefined');
\ No newline at end of file
+assertTrue(typeof(Debug) === 'undefined');
index 9a4d5c4..8b8030f 100644 (file)
@@ -41,4 +41,3 @@ object.toString = custom_toString;
 
 assertEquals(2, Number(object));
 assertEquals('I', String(object)[0]);
-
index 00422cb..24efb37 100644 (file)
@@ -32,4 +32,3 @@ this.w = 0;
 this.x = 1;
 this.y = 2;
 this.z = 3;
-
index 36f09e4..49e4a52 100644 (file)
@@ -48,4 +48,4 @@ for (var i = 0; i < 5; i++) {
 }
 
 %OptimizeFunctionOnNextCall(y);
-assertTrue(y("foo"));
\ No newline at end of file
+assertTrue(y("foo"));
index d780106..41c9193 100644 (file)
@@ -33,4 +33,3 @@ Object.defineProperty(this,
                       { configurable: true, enumerable: true, value: 3 });
 assertEquals(3, this[1]);
 assertTrue(this.hasOwnProperty("1"));
-
index 9d1b320..ef7ee31 100644 (file)
@@ -55,4 +55,3 @@ function TestContinue() {
 
 assertEquals("01", TestBreak());
 assertEquals("01", TestContinue());
-
index 981a1b7..664dadd 100644 (file)
@@ -41,4 +41,3 @@ assertEquals(Infinity, 1/bar(5));
 assertEquals(Infinity, 1/bar(5));
 %OptimizeFunctionOnNextCall(bar);
 assertEquals(-Infinity, 1/bar(-5));
-
index 9caaec2..135c596 100644 (file)
@@ -86,5 +86,3 @@ var value = (function() {
 })();
 
 assertEquals(87, value);
-
-
index d45a0be..d5b8ab1 100644 (file)
@@ -51,4 +51,4 @@ function check(count) {
 
 check(150);
 check(200);
-check(350);
\ No newline at end of file
+check(350);
index f3dbec6..ca425ec 100644 (file)
@@ -80,4 +80,3 @@ for (var i = 0; i < radix16.length; i++) {
   assertEquals(0xaf, parseInt("0xaf", radix));
   assertEquals(0xaf, parseInt("af", radix));
 }
-
index 2f9e011..9acda3c 100644 (file)
@@ -35,4 +35,3 @@ Object.prototype.findOrStore = function() {
 var a =  new Object();
 assertEquals(gee, a.findOrStore());
 assertEquals(gee, a.findOrStore());
-
index cc7b68c..f343eba 100644 (file)
@@ -43,4 +43,3 @@
   };
   fail("case 10", "Default case", "Heap number not recognized as Smi value");
 })();
-
index 7f1fa58..3f1839c 100644 (file)
@@ -29,4 +29,4 @@
 
 // Should't throw. Scanner incorrectly truncated to char before comparing
 // with "*", so it ended the comment early.
-eval("/*\u822a/ */");
\ No newline at end of file
+eval("/*\u822a/ */");
index 69efd0b..dbf40df 100644 (file)
@@ -45,4 +45,3 @@ var used_custom_lookup = false;
 var expected_message = "ReferenceError: f is not defined";
 assertTrue(stack.indexOf(expected_message) >= 0);
 assertFalse(used_custom_lookup);
-
index a6afcc0..ab6608c 100644 (file)
@@ -40,4 +40,3 @@ for (var i = 0; i < 10; i++) f();
 %OptimizeFunctionOnNextCall(f);
 t.number = 2;
 f();
-
index b19afbd..2cda611 100644 (file)
@@ -36,4 +36,3 @@ assertEquals(1, mod(3, 2));
 
 // Surprise mod with overflow.
 assertEquals(-Infinity, 1/mod(-2147483648, -1));
-
index e287e55..41b7c70 100644 (file)
@@ -32,4 +32,4 @@
 var str = Array(10000).join("X");
 str.replace(/^|X/g, function(m, i, s) {
   if (i > 0) assertEquals("X", m, "at position 0x" + i.toString(16));
-});
\ No newline at end of file
+});
index f7a5516..35e7355 100644 (file)
@@ -29,4 +29,4 @@
 
 var a = "abcdefghijklmnopqrstuvqxy"+"z";
 externalizeString(a, true);
-assertEquals('b', a.substring(1).charAt(0));
\ No newline at end of file
+assertEquals('b', a.substring(1).charAt(0));
index cfafe82..7175688 100644 (file)
@@ -113,4 +113,3 @@ eval('function test2() {                \n' +
 test1();
 test2();
 assertEquals(3, break_count);
-
index 335869d..0212855 100644 (file)
@@ -69,4 +69,3 @@ function testGlobal() {
 runTest(testLocal);
 runTest(testConstLocal);
 runTest(testGlobal);
-
index a732312..fbb82ba 100644 (file)
@@ -37,4 +37,3 @@ function test() {
 
 // Crash does not occur when code is run at the top level.
 test();
-
index f803483..457c208 100644 (file)
@@ -40,5 +40,3 @@ f()();
 // The call to f should get the constructor of the receiver which is
 // the constructor of the global object.
 assertEquals(constructor, f());
-
-
index b7f7a5c..701a079 100644 (file)
@@ -39,4 +39,3 @@ assertFalse(f(-10));
 assertFalse(f(-5));
 assertFalse(f(0));
 assertFalse(f(10));
-
index 00ed03f..3f2062b 100644 (file)
@@ -45,4 +45,3 @@ Check(d.setUTCHours(10));
 Check(d.setUTCDate(10));
 Check(d.setUTCMonth(10));
 Check(d.setUTCFullYear(2010));
-
index 54840c2..b735ddf 100644 (file)
@@ -33,4 +33,3 @@ function strict_function() {
 }
 
 assertThrows(strict_function);
-
index 01cb1ea..99f432d 100644 (file)
@@ -55,4 +55,3 @@ try {
 } catch (e) {
   assertUnreachable();
 }
-
index 5d06f4e..6d93845 100644 (file)
@@ -32,4 +32,3 @@ for (var i = 0; i < 10000; i++){
 for (var i = 0; i < 10000; i++){
   (i + "\u1234\0").split(/(.)\1/i);
 }
-
index 9d2fd44..88d4dd4 100644 (file)
@@ -65,4 +65,3 @@ test();
 // function should no longer deopt when called.
 test();
 assertOptimized(test);
-
index efda4cd..a0d628d 100644 (file)
@@ -29,4 +29,3 @@
 
 assertThrows(function() { %_CallFunction(null, 0, ""); });
 assertThrows(function() { %_CallFunction(null, 0, 1); });
-
index e89ec6e..d860bbb 100644 (file)
@@ -30,5 +30,3 @@ for (var i = 0; i < 12; i++) foo += foo;
 foo = foo + 'b' + foo;
 
 foo.replace(/b/, "a");
-
-
index 0c6e5b3..bce0500 100644 (file)
@@ -89,4 +89,4 @@ var str = 'GgcyDGgcy.saaaa.aDGaaa.aynaaaaaaaaacaaaaagcaaaaaaaancaDGgnayr' +
 //Shouldn't crash.
 
 var res = re.test(str);
-assertTrue(res);
\ No newline at end of file
+assertTrue(res);
index b333720..f379cc5 100644 (file)
@@ -31,4 +31,4 @@ var obj = JSON.parse(msg);
 var obj2 = JSON.parse(msg);
 
 assertEquals(JSON.stringify(obj), JSON.stringify(obj2));
-assertEquals(JSON.stringify(obj, null, 0), JSON.stringify(obj2));
\ No newline at end of file
+assertEquals(JSON.stringify(obj, null, 0), JSON.stringify(obj2));
index dabf828..7b7e50f 100644 (file)
@@ -40,4 +40,3 @@ try {
 
 assertTrue(error_stack.indexOf("test stack") > 0);
 assertTrue(error_stack.indexOf("illegal") < 0);
-
index 9cd453a..4ffafbe 100644 (file)
@@ -34,4 +34,3 @@ var b = {0: 5, 1: 4, 2: 3, 3: 2, 4: 1, 5: 0, length: 6};
 Object.freeze(b);
 Array.prototype.sort.call(b);
 assertPropertiesEqual({0: 5, 1: 4, 2: 3, 3: 2, 4: 1, 5: 0, length: 6}, b);
-
index 3f4fd7d..7be7e71 100644 (file)
@@ -49,4 +49,3 @@ testSideEffects("zzzz", /a/);
 testSideEffects("zzzz", /a/g);
 testSideEffects("xaxa", /a/);
 testSideEffects("xaxa", /a/g);
-
index 8fb8d8b..41b6a95 100644 (file)
@@ -116,5 +116,3 @@ assertEquals(0,
                       object_factory(1,   0, [1, 0, 0]),
                       object_factory(2,   1, [1, 1, 0])));
 assertFlags([1, 1, 1]);
-
-
index 09b746b..22e29fd 100644 (file)
@@ -28,4 +28,4 @@
 // See: http://code.google.com/p/v8/issues/detail?id=246
 
 assertTrue(/(?:text)/.test("text"));
-assertEquals(["text"], /(?:text)/.exec("text"));
\ No newline at end of file
+assertEquals(["text"], /(?:text)/.exec("text"));
index 4e32a21..f1331e8 100644 (file)
@@ -29,4 +29,4 @@ var o = ["\u56e7",   // Switch JSON stringifier to two-byte mode.
          "\u00e6"];  // Latin-1 character.
 
 assertEquals('["\u56e7","\u00e6"]', JSON.stringify(o));
-assertEquals('["\u56e7","\u00e6"]', JSON.stringify(o, null, 0));
\ No newline at end of file
+assertEquals('["\u56e7","\u00e6"]', JSON.stringify(o, null, 0));
index 1d327fe..e700608 100644 (file)
@@ -51,6 +51,3 @@ assertTrue(isNaN(boom(0)));
 assertTrue(isNaN(boom(0)));
 assertTrue(isNaN(boom(0)));
 assertTrue(isNaN(boom(0)));
-
-
-
index 2bfd7b2..fe94a10 100644 (file)
@@ -33,4 +33,3 @@ for(var i = 0; i < 800; i++) {
 }
 source += '"';
 eval(source);
-
index 8da1b8f..73a3098 100644 (file)
@@ -42,4 +42,3 @@ f();
 f();
 %OptimizeFunctionOnNextCall(f);
 f();
-
index 5fe7dc4..0ed4c5c 100644 (file)
@@ -26,4 +26,3 @@
 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 assertTrue(/\1[a]/.test("\1a"));
-
index 329ff82..f6604df 100644 (file)
@@ -42,4 +42,4 @@ Cb(s1);
 var s3 = "string for triggering osr in Cb";
 for (var i = 0; i < 16; i++) s3 = s3 + s3;
 Cb(s3);
-Cb(s1 + s2);
\ No newline at end of file
+Cb(s1 + s2);
index de7895d..914409c 100644 (file)
@@ -31,4 +31,3 @@ assertEquals("abcdefghijklmn\xffopq",
 assertEquals("\xff", "\u0178".toLowerCase());
 assertEquals("ABCDEFGHIJKLMN\u0178OPQ",
              ("abcdefghijk" + "lmn\xffopq").toUpperCase());
-
index b742fa1..85f408b 100644 (file)
@@ -28,4 +28,3 @@
 // Ensure replacement with string allows $ in replacement string.
 
 assertEquals("a$ec", "abc".replace("b", "$e"), "$e isn't meaningful");
-
index 1849bd2..4a48a61 100644 (file)
@@ -55,4 +55,3 @@ TestArray(Int32Array);
 TestArray(Float32Array);
 TestArray(Float64Array);
 TestArray(Uint8ClampedArray);
-
index 832a73f..1abe0f9 100644 (file)
@@ -42,5 +42,3 @@ for (var i = 0; i < 15; i++) {
   var res = re.test("xx");
   assertEquals(i % 3 != 2, res, "testres" + i);
 }
-
-
index db93f59..7370134 100644 (file)
@@ -32,4 +32,3 @@ function X() {
 X.prototype.x = {x:1}
 
 new X()
-
index a1c16e2..eece492 100644 (file)
@@ -28,4 +28,3 @@
 assertFalse(Infinity == -Infinity);
 assertEquals(Infinity, 1 / 1e-9999);
 assertEquals(-Infinity, 1 / -1e-9999);
-
index 4d3e66b..c18a8ac 100644 (file)
@@ -58,4 +58,3 @@ for(var i = 0; i < 1024; i++) {
 for(var i = 0; i < 1024; i++) {
   assertEquals(i, obj[i]);
 }
-
index 361b457..b3704ea 100644 (file)
@@ -84,4 +84,3 @@ assertFalse(typeof 'x' == 'object');  // bug #674753
 assertFalse(typeof 'x' === 'object');
 assertFalse(typeof Object == 'object');
 assertFalse(typeof Object === 'object');
-
index 19ca646..bef7b27 100644 (file)
@@ -58,4 +58,3 @@ this.y = 42;
 
 // Check that IC bails out.
 assertEquals(42, g());
-
index 11eaf74..49059c6 100644 (file)
@@ -55,5 +55,3 @@ assertEquals('\027', '\27');
 
 assertEquals(73,  '\111'.charCodeAt(0));
 assertEquals(105, '\151'.charCodeAt(0));
-
-
index 6239047..40e5b1d 100644 (file)
@@ -34,4 +34,3 @@ assertTrue(catcher(null, 'foo') instanceof TypeError);
 assertTrue(catcher(void 0, 'foo') instanceof TypeError);
 assertTrue(catcher(null, 123) instanceof TypeError);
 assertTrue(catcher(void 0, 123) instanceof TypeError);
-
index 4621de6..0253962 100644 (file)
@@ -33,4 +33,3 @@
 
 var obj = {a1: {b1: [1,2,3,4], b2: {c1: 1, c2: 2}},a2: 'a2'};
 assertEquals(JSON.stringify(obj, null, 5.99999), JSON.stringify(obj, null, 5));
-
index 6d6485d..91c9a9f 100644 (file)
@@ -56,5 +56,3 @@ for (var j = 0; j < 10; j++) {
 
 assertEquals(10, i);
 assertEquals(10, j);
-
-
index 275bbe7..aa938f5 100644 (file)
@@ -62,4 +62,3 @@ function f(){
 f();
 %OptimizeFunctionOnNextCall(f);
 f();
-
index 78a57b2..fd79fc0 100644 (file)
@@ -45,4 +45,3 @@ function h() {
 assertEquals(1, f());
 assertEquals(undefined, g());
 assertEquals(undefined, h());
-
index d50c568..6d75504 100644 (file)
@@ -39,4 +39,3 @@ assertClose( Math.PI / 4, Math.atan2(pinf, pinf));
 assertClose(-Math.PI / 4, Math.atan2(ninf, pinf));
 assertClose( 3 * Math.PI / 4, Math.atan2(pinf, ninf));
 assertClose(-3 * Math.PI / 4, Math.atan2(ninf, ninf));
-
index 41ca992..b61bc0c 100644 (file)
@@ -75,4 +75,4 @@ function a(x, y) {
 }
 
 Debug.setBreakPoint(a, 0, 0);
-new a(1, 2);
\ No newline at end of file
+new a(1, 2);
index e88121a..6f3dac1 100644 (file)
@@ -54,4 +54,3 @@ function h(value) {
   }
 }
 h(undefined);
-
index 260b791..840c045 100644 (file)
@@ -48,4 +48,4 @@ Debug.setBreakPoint(f, 0, 0);
 f();
 
 // Make sure that the debug event listener vas invoked.
-assertTrue(listenerCalled);
\ No newline at end of file
+assertTrue(listenerCalled);
index 0b4af75..cb77cdf 100644 (file)
@@ -35,4 +35,3 @@ assertEquals("Infinity", String(1/f()));
 assertEquals("Infinity", String(1/f()));
 %OptimizeFunctionOnNextCall(f);
 assertEquals("Infinity", String(1/f()));
-
index c6cbaf7..29c8a04 100644 (file)
@@ -165,4 +165,3 @@ assertEquals(t2(1.3,null), 1.3/0);
 assertEquals(t2(undefined,2), NaN/2);
 assertEquals(t2(1,1<<30), 1/(1<<30));
 assertEquals(t2(1,2), 1/2);
-
index 99f19c7..5cb5900 100644 (file)
@@ -36,4 +36,3 @@ assertEquals("12A",
 
 assertEquals(1, JSON.parse('{"0":1}')[0]);
 assertEquals(undefined, JSON.parse('{"00":1}')[0]);
-
index 57071ea..25cc96b 100644 (file)
@@ -49,4 +49,3 @@ for (var i = 0; i < 1000; i++) {
   r3 = "(" + r3 + ")a";
 }
 "test".match(RegExp(r3));
-
index 4f4bb7c..6c8e6ad 100644 (file)
@@ -35,4 +35,4 @@ try {
   ((0).toLocaleString)();
 } catch (e) {
   assertInstanceof(e, TypeError);
-}
\ No newline at end of file
+}
index d5baa7b..39363bc 100644 (file)
@@ -61,4 +61,3 @@ function g(a, b) {
 g.apply(this, array);
 g("a", "b", "c");
 assertNull(error);
-
index 835726b..38b44e0 100644 (file)
@@ -39,4 +39,4 @@ function hole(i) {
 assertEquals(1, hole(0));
 assertEquals(1, hole(0));
 %OptimizeFunctionOnNextCall(hole);
-assertEquals(0, hole(1));
\ No newline at end of file
+assertEquals(0, hole(1));
index 4769486..1e7eb92 100644 (file)
@@ -87,4 +87,4 @@ function g(a) {
 var b = [0];
 g(b);
 g(b);
-assertEquals(undefined, g(a));
\ No newline at end of file
+assertEquals(undefined, g(a));
index c57b0e6..eac494a 100644 (file)
@@ -46,4 +46,3 @@ Debug.setListener(listener);
 eval("debugger");
 Debug.setListener(null);
 assertTrue(listened);
-
index ed78183..054668e 100644 (file)
@@ -80,4 +80,3 @@ Object.extend( Array.prototype,
 });
 assertEquals("Test1 test1", "test1 test1".cap());
 assertEquals("Test2 Test2", "test2 test2".cap(true));
-
index be54be6..c85cf56 100644 (file)
@@ -57,4 +57,3 @@ StringFromCharCode(0x7C, 0x7C);
 %OptimizeFunctionOnNextCall(StringFromCharCode);
 StringFromCharCode(0x7C, 0x7C);
 StringFromCharCode(0xFFF, 0xFFF);
-
index 6acc2f2..6a5ba91 100644 (file)
@@ -32,4 +32,3 @@ String.fromCharCode(0x7C, 0x7C);
 %OptimizeFunctionOnNextCall(String.fromCharCode);
 String.fromCharCode(0x7C, 0x7C);
 String.fromCharCode(0xFFF, 0xFFF);
-
index b5dbcb4..4065f50 100644 (file)
@@ -46,4 +46,3 @@ function test(f, x, name) {
 
 test(Math.tan, -1.57079632679489660000, "Math.tan");
 test(Math.sin, 6.283185307179586, "Math.sin");
-
index e9ae921..391ef3d 100755 (executable)
@@ -137,4 +137,3 @@ assertEquals(2, o.y);
 o = new g();
 assertEquals(1, o.x);
 assertEquals(2, o.y);
-
index 0952f2c..114ab0a 100644 (file)
@@ -37,5 +37,3 @@ for (var repetitions = 0; repetitions < 20; repetitions++) {
     array[i * stride] = i;
   }
 }
-
-
index 165c4df..3bec963 100644 (file)
@@ -84,4 +84,4 @@ testNotOmittedBuiltin(function(){ [thrower, 2].sort(function (a,b) {
                       }, "QuickSort");
 
 // Not omitted even though ADD from runtime.js is a non-native builtin.
-testNotOmittedBuiltin(function(){ thrower + 2; }, "ADD");
\ No newline at end of file
+testNotOmittedBuiltin(function(){ thrower + 2; }, "ADD");
index 91d97f3..02a465e 100644 (file)
@@ -46,4 +46,3 @@ function testPrepareStackTrace(closure) {
 
 testPrepareStackTrace(function() { throw new Error("foo"); });
 testPrepareStackTrace(function f() { f(); });
-
index 45e254b..377352f 100644 (file)
@@ -62,4 +62,3 @@ assertEquals(42, o.x);
 delete o.x;
 store(o);
 assertEquals(42, o.x);
-
index cbec87f..8c9a307 100644 (file)
@@ -211,4 +211,4 @@ assertTrue(isNaN(toNumber("+0xFF")));
 assertTrue(isNaN(toNumber("+0x012")));
 assertTrue(isNaN(toNumber("-0x0")));
 assertTrue(isNaN(toNumber("-0xFF")));
-assertTrue(isNaN(toNumber("-0x012")));
\ No newline at end of file
+assertTrue(isNaN(toNumber("-0x012")));
index d080ce8..d5577c7 100644 (file)
@@ -84,7 +84,3 @@ assertFalse(0 === new Number(0));
 assertFalse(1 === new Number(1));
 assertTrue(4.2 === 4.2);
 assertTrue(4.2 === Number(4.2));
-
-
-
-
index cd1cde1..7a9009b 100644 (file)
@@ -77,4 +77,3 @@ test();
 test();
 %OptimizeFunctionOnNextCall(test);
 test();
-
index 73b310f..2f1efd8 100644 (file)
@@ -53,4 +53,3 @@ var moving_string = "b" + "c";
 var bar = foo.replace(/[a]/g, moving_string);
 
 print(bar.length);
-
index 4de17bc..037725b 100644 (file)
@@ -37,4 +37,3 @@ for (var i = 0; i < 100; i++) {
   var r = s.search(s);
   assertEquals(0, r);
 }
-
index 5b1dc36..f5e1d91 100755 (executable)
@@ -222,4 +222,4 @@ function test_crankshaft() {
 
 test_crankshaft();
 %OptimizeFunctionOnNextCall(test_crankshaft);
-test_crankshaft();
\ No newline at end of file
+test_crankshaft();
index 04c7d76..ded7185 100644 (file)
@@ -79,4 +79,3 @@ assertEquals("-91.123", (-91.1234).toPrecision(5));
 assertEquals("-91.1234", (-91.1234).toPrecision(6));
 assertEquals("-91.12340", (-91.1234).toPrecision(7));
 assertEquals("-91.123400", (-91.1234).toPrecision(8));
-
index 65bffb6..44a5a3c 100644 (file)
@@ -32,5 +32,3 @@ assertTrue(!!new Boolean(false), "new Boolean(false)");
 assertTrue(!!new Number(-1), "new Number(-1)");
 assertTrue(!!new Number(0), "new Number(0)");
 assertTrue(!!new Number(1), "new Number(1)");
-
-
index 4df1a08..0f79aea 100644 (file)
@@ -345,4 +345,3 @@ function assertNodeWeights(root, path, selfTicks, totalTicks) {
   }
 
 })();
-
index f06bddf..9c4cc36 100644 (file)
@@ -68,5 +68,3 @@ assertEquals(2147483649, ToUInt32('2147483649'), "'2147483649'");
 assertEquals(4294967295, ToUInt32('4294967295'), "'4294967295'");
 assertEquals(0,          ToUInt32('4294967296'), "'4294967296'");
 assertEquals(1,          ToUInt32('4294967297'), "'4294967297'");
-
-
index 78e6c48..2a75d6d 100644 (file)
@@ -46,4 +46,3 @@ assertTrue(Math.acos(x) != Math.acos(y));
 assertTrue(Math.atan(x) != Math.atan(y));
 
 assertTrue(Math.exp(x) != Math.exp(y));
-
index b55e7ac..5e04930 100644 (file)
@@ -69,4 +69,4 @@ for (x in a) {
     }
   }
 }
-assertEquals(9, f);
\ No newline at end of file
+assertEquals(9, f);
index 13a7acf..2376a60 100644 (file)
@@ -43,4 +43,3 @@ for (var i = 0; i < 7; i++) {
   s += s;
 }
 assertTrue(isNaN(Number(s)), "long-string");
-
index 66a029a..5be1b41 100644 (file)
@@ -9165,5 +9165,3 @@ var thai_l_regexp = new RegExp(thai_l_thingy);
 var thai_l_regexp2 = new RegExp("[" + thai_l_thingy + "]");
 assertTrue(thai_l_regexp.test(thai_l_thingy));
 assertTrue(thai_l_regexp2.test(thai_l_thingy));
-
-
index a4da1fa..f7a89f3 100644 (file)
@@ -35,4 +35,4 @@
 /* This should be fairly easy again. May need some work in the
 compiler's VisitWith() function, or perhaps the runtime routine's
 PushContextForWith().
-*/
\ No newline at end of file
+*/
index bf28923..44db66e 100644 (file)
@@ -32,4 +32,4 @@ function foo() {
   "use\x20strict";
   var x = "hello\040world";
   return x;
-}
\ No newline at end of file
+}
index 9e00742..55f035a 100644 (file)
@@ -32,4 +32,4 @@ function foo() {
   "use\040strict";
   var x = "hello\040world";
   return x;
-}
\ No newline at end of file
+}
index 5fba673..c7df2cb 100644 (file)
@@ -32,4 +32,4 @@ function foo() {
   "use\u0020strict";
   var x = "hello\040world";
   return x;
-}
\ No newline at end of file
+}
index 890f62e..43c7e2e 100644 (file)
@@ -48,4 +48,3 @@ arguments -= ++arguments;
 arguments *= arguments--;
 function arguments(arguments) {};
 try {} catch (arguments) {}
-
index ad994ab..db6feda 100644 (file)
@@ -48,4 +48,3 @@ eval -= ++eval;
 eval *= eval--;
 function eval(eval) {};
 try {} catch (eval) {}
-
index 12d05a0..17f0c93 100644 (file)
@@ -38,6 +38,3 @@ with ({x : 42}) {
 }
 
 with ({}) {}
-
-
-
index 91e9e39..2b9230c 100644 (file)
@@ -26,4 +26,4 @@
 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 "use strict";
-const x = 42;
\ No newline at end of file
+const x = 42;
index 122bd3d..ea5c5e3 100644 (file)
@@ -31,4 +31,4 @@ function foo() {
   "use strict";
   var re = RegExp("Hello\\040World");
   return re;
-}
\ No newline at end of file
+}
index d387d6a..3e99127 100644 (file)
@@ -31,4 +31,4 @@ function foo() {
   "use strict";
   var x = 012;
   return x;
-}
\ No newline at end of file
+}
index fded9bf..b39d0b2 100644 (file)
@@ -31,4 +31,4 @@ function foo() {
   "use strict";
   var re = /hello\040world/;
   return re;
-}
\ No newline at end of file
+}
index 40408e6..87c0e99 100644 (file)
@@ -31,4 +31,4 @@ function foo() {
   "use strict";
   var x = "hello\040world";
   return x;
-}
\ No newline at end of file
+}
index 1af078a..57d0f20 100644 (file)
@@ -32,4 +32,4 @@ function foo() {
   "use strict";
   "use\040strict";
   return true;
-}
\ No newline at end of file
+}
index 1dbb571..bfc380f 100644 (file)
@@ -32,4 +32,4 @@ function foo() {
   "use\040strict";
   "use strict";
   return true;
-}
\ No newline at end of file
+}
index a19355e..411fc29 100644 (file)
@@ -30,4 +30,4 @@
 function foo() {
   "use strict";
   with ({}) {}
-}
\ No newline at end of file
+}
index a4dd4d5..28a4fd6 100644 (file)
@@ -34,4 +34,3 @@ shouldBe('indexArguments(1, "a")', '"a"');
 shouldBe('indexArguments("1 ", "a")', 'undefined');
 shouldBe('indexArguments(0xDEADBEEF)', 'undefined');
 shouldBe('indexArguments(0xFFFFFFFF)', 'undefined');
-
index dfda1e0..2c29917 100644 (file)
@@ -27,5 +27,3 @@ description(
 
 Object.defineProperty(Array.prototype, 0, { writable: false });
 shouldBe("[42].concat()", "[42]");
-
-
index 828e2d6..1685ba0 100644 (file)
@@ -46,4 +46,3 @@ for (var i = 0; i < 200; ++i) {
     }
     shouldBe("foo(" + f + ", " + array + ", 0)", expected);
 }
-
index df6dcdf..1d37646 100644 (file)
@@ -32,4 +32,3 @@ function foo(a) {
 
 for (var i = 0; i < 100; ++i)
     shouldBe("foo(\"foo\" + i)", "NaN");
-
index f7a012e..dce0c3d 100644 (file)
@@ -40,4 +40,3 @@ function bar(x) {
 
 for (var i = 0; i < 200; ++i)
     shouldBe("bar(42)", "1764");
-
index e94ad8b..33154e9 100644 (file)
@@ -42,4 +42,3 @@ for (var i = 0; i < 300; ++i) {
     var c = i + 3;
     shouldBe("foo(a, b, c)", "6");
 }
-
index c30fe89..6fc7195 100644 (file)
@@ -39,4 +39,3 @@ function bar(x) {
 
 for (var i = 0; i < 200; ++i)
     shouldBe("bar(42)", "42");
-
index 477eac3..7d52ffb 100644 (file)
@@ -39,4 +39,3 @@ function bar(x) {
 
 for (var i = 0; i < 200; ++i)
     shouldBe("bar(42)", "42");
-
index 8774d2c..e6e9a01 100644 (file)
@@ -49,4 +49,3 @@ for (var i = 0; i < 3000; ++i) {
     result = "" +foo.apply(void 0, args);
     shouldBe("result", expected);
 }
-
index a627617..c40a37c 100644 (file)
@@ -49,4 +49,3 @@ function bar(x) {
 for (var i = 0; i < 1000; ++i) {
     shouldBe("foo()", "2");
 }
-
index 5256fe1..9191524 100644 (file)
@@ -33,4 +33,3 @@ function foo(x) {
 for (var i = 0; i < 1000; ++i) {
     shouldBe("foo({f:[]})", "42");
 }
-
index ab0215e..9e92c24 100644 (file)
@@ -39,4 +39,3 @@ for (var i = 0; i < 200; ++i) {
     var expected = i + (i == 199 ? 2147483647 : 5) + (i !== 5 ? 1 : -1)
     shouldBe("foo(i, 5, i == 199 ? 2147483647 : 5)", "" + expected);
 }
-
index af7ba97..31de5af 100644 (file)
@@ -51,4 +51,3 @@ for (var i = 0; i < 200; ++i) {
     shouldBe("bar({f:True})", "0");
     shouldBe("bar({f:False})", "1");
 }
-
index 5a332c1..6ee1f68 100644 (file)
@@ -43,4 +43,3 @@ for (var i = 0; i < 200; ++i) {
         expected = -1;
     shouldBe("bar(i, i + 1)", "" + expected);
 }
-
index 382f899..8c486c7 100644 (file)
@@ -50,4 +50,3 @@ for (var i = 0; i < 200; ++i) {
         expected = 56;
     shouldBe("callFoo(o)", "" + expected);
 }
-
index 6a91b14..bb48f63 100644 (file)
@@ -51,5 +51,3 @@ for (var i = 0; i < 1000; ++i) {
     shouldBe("foo1(new Stuff())", "43");
     shouldBe("foo2(new Stuff())", "58");
 }
-
-
index cd73f70..9760e4f 100644 (file)
@@ -56,5 +56,3 @@ function foo(x) {
 // Call foo() enough times to make totally sure that we optimize.
 for (var i = 0; i < 5; ++i)
     shouldBe("foo(0.5)", "1000.50025");
-
-
index a40e7e6..5617765 100644 (file)
@@ -51,4 +51,3 @@ function foo(a, b) {
 
 for (var i = 0; i < 200; ++i)
     shouldBe("foo(i, i + 1)", "162");
-
index aec600b..de18191 100644 (file)
@@ -38,4 +38,3 @@ function foo(a) {
 
 for (var i = 0; i < 1000; ++i)
     shouldBe("foo(i)(false)", "42");
-
index 48293be..3195f5b 100644 (file)
@@ -44,4 +44,3 @@ for (var i = 0; i < 200; ++i) {
         shouldBe("ok", "" + i);
     shouldBe("result", "" + expected);
 }
-
index f723f43..d5b2a50 100644 (file)
@@ -67,4 +67,3 @@ for (var i = 0; i < 200; ++i) {
         shouldBe("ok", "" + i);
     shouldBe("result", "100");
 }
-
index 7778f5a..71cdd0f 100644 (file)
@@ -42,4 +42,3 @@ for (var i = 0; i < 200; ++i) {
     shouldBe("foo(thingy, i)", "10");
     shouldBe("variable", "" + expected);
 }
-
index 0f9f48c..bc4c9ea 100644 (file)
@@ -84,4 +84,3 @@ for (var i = 0; i < 300; ++i) {
     code += "); foo(firstArg, secondArg)";
     shouldBe(code, "1");
 }
-
index 266bc15..722341a 100644 (file)
@@ -87,5 +87,3 @@ for (var i = 0; i < 256; ++i) {
 }
 
 shouldBe("grandResult", "14578304");
-
-
index c6c57fe..19d0091 100644 (file)
@@ -49,4 +49,3 @@ for (var i = 0; i < 1000; ++i) {
     // Undo.
     array1[0] = 1;
 }
-
index c77b33d..2632242 100644 (file)
@@ -47,5 +47,3 @@ for (var i = 0; i < 200; ++i) {
     });
     shouldBe("bar(o)", i < 100 ? "\"Returned result: " + i + "\"" : "\"Threw exception: Oh hi, I'm an exception!\"");
 }
-
-
index dafd9f9..d0f5664 100644 (file)
@@ -34,5 +34,3 @@ for (var i = 0; i < 200; ++i) {
     o.__defineGetter__("f", function(){ return i; });
     shouldBe("foo(o)", "" + i);
 }
-
-
index 82a49fa..4d254d8 100644 (file)
@@ -53,4 +53,3 @@ for (var i = 0; i < 300; ++i) {
     }
     shouldBe("baz(arg1, arg2)", "" + expected);
 }
-
index 23b9184..9cd6ec0 100644 (file)
@@ -50,4 +50,3 @@ for (var i = 0; i < 3000; ++i) {
     result = "" + bar();
     shouldBe("result", expected);
 }
-
index a1c5ca2..95a98bc 100644 (file)
@@ -45,4 +45,3 @@ function argsToStr(args) {
 
 for (var __i = 0; __i < 200; ++__i)
     shouldBe("argsToStr(bar(\"a\" + __i, \"b\" + __i, \"c\" + __i))", "\"[object Arguments]: a" + __i + ", b" + __i + ", c" + __i + "\"");
-
index b4fa6c1..cc22ec4 100644 (file)
@@ -58,4 +58,3 @@ function argsToStr(args) {
 
 for (var __i = 0; __i < 200; ++__i)
     shouldThrow("argsToStr(bar(\"a\" + __i, \"b\" + __i, \"c\" + __i))");
-
index 4470d9c..fce5430 100644 (file)
@@ -62,4 +62,3 @@ for (var __i = 0; __i < 200; ++__i) {
     var text3 = "[[object Arguments]: 42, 56]";
     shouldBe("argsToStr(bar(o, \"b\" + __i, \"c\" + __i))", "\"[[object Arguments],[object Arguments],[object Arguments],[object Arguments],[object Arguments],[object Arguments],[object Arguments],[object Arguments],[object Arguments],[object Arguments]: " + text1 + ", " + text1 + ", " + text1 + ", " + text1 + ", " + text1 + ", " + text2 + ", " + text1 + ", " + text1 + ", " + text2 + ", " + text3 + "]\"");
 }
-
index f532d35..bece496 100644 (file)
@@ -48,4 +48,3 @@ function argsToStr(args) {
 
 for (var __i = 0; __i < 200; ++__i)
     shouldBe("argsToStr(bar(o, \"b\" + __i, \"c\" + __i))", "\"[object Arguments]: [object Object], b" + __i + ", c" + __i + "\"");
-
index c6dd2b2..dbbefb8 100644 (file)
@@ -66,4 +66,3 @@ shouldBe("resultArray[3]", "\"g\"");
 shouldBe("resultArray[2]", "\"makeInlinableCall\"");
 shouldBe("resultArray[1]", "\"inlineable\"");
 shouldBe("resultArray[0]", "\"nonInlineable\"");
-
index 929592e..13ad448 100644 (file)
@@ -51,4 +51,3 @@ for (var i = 0; i < 1000; ++i) {
 
     shouldBe("baz(object, " + i + ", " + (i * 2) + ")", "" + (offset + i + i * 2));
 }
-
index 5983d72..8260083 100644 (file)
@@ -54,4 +54,3 @@ for (var i = 0; i < 1000; ++i) {
 
     shouldBe("baz(object, " + i + ", " + (i * 2) + ")", "" + (offset + i + i * 2));
 }
-
index 8752a12..07b8e34 100644 (file)
@@ -37,4 +37,3 @@ function foo(a) {
 }
 
 shouldBe("foo(0)", "-4094336");
-
index 4e2f970..dc6ff09 100644 (file)
@@ -72,5 +72,3 @@ function foo(a) {
 
 for (var i = 0; i < 200; ++i)
     shouldBe("foo(2147483647)", "2147483552");
-
-
index 31ec8fc..0041aec 100644 (file)
@@ -43,4 +43,3 @@ for (var i = 0; i < 1000; ++i) {
     shouldBe("result.a", "" + eval("((" + a + " + " + b + ") | 0)"))
     shouldBe("result.b", "" + eval(a + " + " + b))
 }
-
index 4424400..445cb0b 100644 (file)
@@ -47,4 +47,3 @@ for (var i = 0; i < 1000; ++i) {
 
     shouldBe("baz(object, " + i + ", " + (i * 2) + ")", "" + (offset + Math.max(i, i * 2)));
 }
-
index f7d3aa5..fa20868 100644 (file)
@@ -50,4 +50,3 @@ for (var i = 0; i < 1000; ++i) {
 
     shouldBe("baz(object, " + i + ", " + (i * 2) + ")", "" + (offset + Math.max(i, i * 2)));
 }
-
index b4041e1..0fd18fb 100644 (file)
@@ -46,4 +46,3 @@ for (var i = 0; i < 200; ++i) {
     }
     shouldBe("foo(" + f + ", " + array + ", 0)", expected);
 }
-
index 835aefa..b423a8f 100644 (file)
@@ -46,4 +46,3 @@ for (var i = 0; i < 200; ++i) {
     }
     shouldBe("foo(" + f + ", " + array + ", 0)", expected);
 }
-
index c312670..47530c6 100644 (file)
@@ -41,4 +41,3 @@ shouldBe("foo(0, 1, 0)", "0.5");
 
 for (var i = 0; i < 200; ++i)
     shouldBe("foo(i, i + 1, i + 2)", "1");
-
index 0176a25..2dbd30d 100644 (file)
@@ -31,5 +31,3 @@ function foo(a, b) {
 
 for (var i = 0; i < 100; ++i)
     shouldBe("foo(2147483647, 2147483646)", "-2147483648");
-
-
index a4d8bdb..741a608 100644 (file)
@@ -53,4 +53,3 @@ for (var i = 0; i < 200; ++i) {
     }
     shouldBe("foo(predicate, {f:object})", "" + expected);
 }
-
index 95f278f..e52c5bd 100644 (file)
@@ -65,4 +65,3 @@ for (var i = 0; i < 10; ++i) {
     shouldBe("doMultiplyConstant4(-1073741824)", "-4294967296");
     shouldBe("doMultiplyConstant4(-2147483648)", "-8589934592");
 }
-
index f23c7fb..8627ea5 100644 (file)
@@ -34,4 +34,3 @@ for (var i = 0; i < 100; ++i) {
     foo(array, -1);
     shouldBe("array[-1]", "42");
 }
-
index 9866126..f4d0035 100644 (file)
@@ -67,4 +67,3 @@ for (var i = 0; i < 200; ++i) {
     }
     shouldBe("foo(o, p)", "" + expected);
 }
-
index f881b89..9b32195 100644 (file)
@@ -39,4 +39,3 @@ function foo(o) {
 
 for (var i = 0; i < 200; ++i)
     shouldBe("foo(i < 190 ? {f:42, g:{h:3}} : {f:42, g:{}})", "false");
-
index d813436..c29dcf6 100644 (file)
@@ -39,4 +39,3 @@ function foo(o) {
 
 for (var i = 0; i < 200; ++i)
     shouldBe("foo(i < 190 ? {f:42, g:{h:3}} : {f:42, g:{}})", "false");
-
index 3529980..19cd657 100644 (file)
@@ -41,4 +41,3 @@ for (var i = 0; i < 200; ++i) {
         myProto.g = 67;
     shouldBe("foo({g:new Thingy()})", "42");
 }
-
index 5bc66d9..bc2eef1 100644 (file)
@@ -47,4 +47,3 @@ for (var i = 0; i < 200; ++i) {
     }
     shouldBe("foo(array, 0)", expected);
 }
-
index 5a8e2c0..710acb7 100644 (file)
@@ -54,5 +54,3 @@ for (var i = 0; i < 150; ++i) {
     else
         shouldBe("o.foo", "void 0");
 }
-
-
index 4bd9d45..e803f93 100644 (file)
@@ -47,5 +47,3 @@ for (var i = 0; i < 150; ++i) {
     shouldBe("o.f", "6");
     shouldBe("o.g", "7");
 }
-
-
index a8b6137..035bcb0 100644 (file)
@@ -49,4 +49,3 @@ for (var i = 0; i < 1000; ++i) {
     } else
         shouldBe("o.f", "" + i);
 }
-
index e6c19ee..50948a2 100644 (file)
@@ -61,5 +61,3 @@ for (var i = 0; i < 150; ++i) {
     shouldBe("o.m", "13");
     shouldBe("o.n", "14");
 }
-
-
index 40d79e0..930fbe5 100644 (file)
@@ -43,4 +43,3 @@ for (var i = 0; i < 200; ++i) {
     shouldBe("foo(array, -1, i)", "42");
     shouldBe("thingy", "" + i);
 }
-
index 9f3bfd3..32df63b 100644 (file)
@@ -35,4 +35,3 @@ function sum(nums) {
 
 for (var i = 0; i < 200; ++i)
     shouldBe("sum([2147483646, 2147483644])", "4294967290");
-
index 9954e3a..aec4b4b 100644 (file)
@@ -46,4 +46,3 @@ for (var i = 0; i < 200; ++i) {
     }
     shouldBe("foo(" + f + ", " + array + ", 0)", expected);
 }
-
index 27a809a..510709a 100644 (file)
@@ -49,4 +49,3 @@ for (var i = 0; i < 1000; ++i) {
     shouldBe("foo({f:\"" + a + "\"}, {f:\"" + b + "\"})", "[" + (a.length + b.length) + ", " + areEqual + "]");
     shouldBe("bar({f:\"" + a + "\"}, {f:\"" + b + "\"})", "" + (areEqual ? a.length + b.length + 1 : a.length + b.length - 1));
 }
-
index d3967cc..e18a086 100644 (file)
@@ -42,4 +42,3 @@ for (var i = 0; i < 200; ++i) {
     shouldBe("thingy.length", "1");
     shouldBe("thingy[0]", "false");
 }
-
index a8582bf..cdbf4bd 100644 (file)
@@ -42,4 +42,3 @@ for (var i = 0; i < 200; ++i) {
     shouldBe("thingy.length", "1");
     shouldBe("thingy[0]", "false");
 }
-
index 8ae7388..75af16d 100644 (file)
@@ -29,4 +29,3 @@ function foo(a, o) {
 
 for (var i = 0; i < 100; ++i)
     shouldBe("\"\" + foo(\"foo\", i % 2 ? \"hello\" : [1, 2, 3])", i % 2 ? "\"foo,hello\"" : "\"foo,1,2,3\"");
-
index 0c89f3b..a10767b 100644 (file)
@@ -29,4 +29,3 @@ function foo(a, o) {
 
 for (var i = 0; i < 100; ++i)
     shouldBe("\"\" + foo(\"foo\", i % 2 ? \"hello\" : 42)", i % 2 ? "\"foo,hello\"" : "\"foo,42\"");
-
index e37fa99..254b5f2 100644 (file)
@@ -34,4 +34,3 @@ for (var i = 0; i < 100; ++i) {
         String.prototype.toString = function() { return 42; }
     shouldBe("foo.call(new String(\"foo\"))", i >= 99 ? "\"42\"" : "\"foo\"");
 }
-
index d15917a..433475d 100644 (file)
@@ -39,4 +39,3 @@ for (var i = 0; i < 150; ++i) {
     }
     shouldBe("\"\" + foo(\"hello\")", expected);
 }
-
index 17f5794..f7f8099 100644 (file)
@@ -41,4 +41,3 @@ for (var i = 0; i < 150; ++i) {
     }
     shouldBe("\"\" + foo(argument)", expected);
 }
-
index e591bf7..e5c4c6b 100644 (file)
@@ -39,4 +39,3 @@ for (var i = 0; i < 150; ++i) {
     }
     shouldBe("\"\" + foo(argument)", "\"hello\"");
 }
-
index ec2be1d..1236554 100644 (file)
@@ -34,4 +34,3 @@ function foo(a) {
 
 for (var i = 0; i < 100; ++i)
     shouldBe("foo(" + i + ")()", "" + i);
-
index 13029d2..40d3a13 100644 (file)
@@ -42,4 +42,3 @@ for (var i = 0; i < 200; ++i) {
     }
     shouldBe("foo(i, 1, o)", "" + expected);
 }
-
index f7c11d1..7fc98da 100644 (file)
@@ -39,4 +39,3 @@ shouldBe("result", "124500");
 shouldBe("foo({f:2147483648}, {f:32})", "2147483648");
 shouldBe("foo({f:2147483648}, {f:31})", "1");
 shouldBe("foo({f:2147483648}, {f:30})", "2");
-
index 1de13a3..6d7f06a 100644 (file)
@@ -35,4 +35,3 @@ for (var i = 0; i < 200; ++i) {
     foo(array);
     shouldBe("array[0]", "0x8005465c");
 }
-
index fa06a90..84f3f4b 100644 (file)
@@ -45,4 +45,3 @@ for (var i = 0; i < 1000; ++i) {
     shouldBe("o2.f", "false");
     shouldBe("o3.f", "false");
 }
-
index b02a2fc..1f04602 100644 (file)
@@ -201,5 +201,3 @@ function reviveIntroducesNewArrayLikeObject(i, v) {
 }
 
 shouldBe('JSON.stringify(JSON.parse("[0,1]", reviveIntroducesNewArrayLikeObject))', '\'[0,["a","a"]]\'');
-
-
index 59df2f1..c2a695d 100644 (file)
@@ -75,4 +75,4 @@ description("This test how deep we can recurse, and that we get an exception whe
     } catch (ex) {
         var msg = String(eval(ex));
         shouldBe("msg", "'RangeError: Maximum call stack size exceeded.'");
-    }
\ No newline at end of file
+    }
index 759767f..cab6dfa 100644 (file)
@@ -80,4 +80,4 @@ description("This test checks toString() round-trip decompilation for binary and
     for (test in tests) {
         var decompiledFunction = eval("(function () {  " + tests[test] + ";})").toString().replace(/\n/g, "");
         shouldBe("decompiledFunction", "'function () {  " + tests[test] + ";}'");
-    }
\ No newline at end of file
+    }
index 26bf331..595c3b3 100644 (file)
@@ -233,4 +233,4 @@ function testToString() {
   Number.prototype.toLocaleString = backupNumberToLocaleString;
   RegExp.prototype.toString = backupRegExpToString;
   RegExp.prototype.toLocaleString = backupRegExpToLocaleString;
-}
\ No newline at end of file
+}
index dbc117a..6ddb953 100644 (file)
@@ -29,4 +29,4 @@ shouldBe("(new Boolean(true)).valueOf()", "true");
 shouldBe("(new Boolean(false)).valueOf()", "false");
 shouldBe("(new Boolean(Boolean(true))).valueOf()", "true");
 shouldBeTrue("true.valueOf() === true");
-shouldBeTrue("false.toString() === 'false'");
\ No newline at end of file
+shouldBeTrue("false.toString() === 'false'");
index 4ccf025..140403d 100644 (file)
@@ -33,4 +33,4 @@ shouldBe("d.setYear(100), d.getFullYear()", "100");
 shouldBe("d.setYear(2050), d.getFullYear()", "2050");
 shouldBe("d.setYear(1899), d.getFullYear()", "1899");
 shouldBe("d.setYear(2000), d.getFullYear()", "2000");
-shouldBe("d.setYear(2100), d.getFullYear()", "2100");
\ No newline at end of file
+shouldBe("d.setYear(2100), d.getFullYear()", "2100");
index 6ecd5c3..0f1d911 100644 (file)
@@ -32,4 +32,4 @@ shouldBe("(new Error('msg')).name", "'Error'");
 
 shouldBe("Object.prototype.toString.apply(Error())", "'[object Error]'");
 shouldBe("Object.prototype.toString.apply(Error)", "'[object Function]'");
-shouldBe("Object.prototype.toString.apply(EvalError)", "'[object Function]'");
\ No newline at end of file
+shouldBe("Object.prototype.toString.apply(EvalError)", "'[object Function]'");
index 112aea8..aa09cd2 100644 (file)
@@ -96,4 +96,4 @@ shouldBe("parseFloat('3.1x', 3)", "3.1");
 shouldBeFalse("isFinite(parseFloat('Infinity'))");
 shouldBeFalse("delete NaN");
 shouldBeFalse("delete Infinity");
-shouldBeFalse("delete undefined");
\ No newline at end of file
+shouldBeFalse("delete undefined");
index 358fe7a..946c093 100644 (file)
@@ -496,4 +496,4 @@ shouldBe("Number(0).toPrecision(17)","\"0.0000000000000000\"");
 shouldBe("Number(0).toPrecision(18)","\"0.00000000000000000\"");
 shouldBe("Number(0).toPrecision(19)","\"0.000000000000000000\"");
 shouldBe("Number(0).toPrecision(20)","\"0.0000000000000000000\"");
-shouldBe("Number(0).toPrecision(21)","\"0.00000000000000000000\"");
\ No newline at end of file
+shouldBe("Number(0).toPrecision(21)","\"0.00000000000000000000\"");
index 2637309..5138128 100644 (file)
@@ -39,4 +39,4 @@ shouldBe("(new Object('s')).valueOf()", "'s'");
 
 shouldBe("String(Object())", "'[object Object]'");
 shouldBe("Object().toString()", "'[object Object]'");
-shouldBe("String(Object().valueOf())", "'[object Object]'");
\ No newline at end of file
+shouldBe("String(Object().valueOf())", "'[object Object]'");
index a2971fd..8e6638e 100644 (file)
@@ -55,4 +55,4 @@ shouldBe("b.author", "'Fred'");                  // outpus "Fred"
 
 ///////////////////////////////////////////////////////
 
-shouldBe("delete Boolean.prototype", "false");
\ No newline at end of file
+shouldBe("delete Boolean.prototype", "false");
index eea6a87..ede84d0 100644 (file)
@@ -179,4 +179,4 @@ shouldBe("(new RegExp('(?:)')).source", "'(?:)'");
 shouldBe("/(?:)/.toString()", "'/(?:)/'");
 shouldBe("/(?:)/.source", "'(?:)'");
 
-debug("Done.");
\ No newline at end of file
+debug("Done.");
index cef3698..b697739 100644 (file)
@@ -70,4 +70,4 @@ test0();
 test1();
 test2(42);
 test3();
-test4();
\ No newline at end of file
+test4();
index 2cb49cf..d654bb3 100644 (file)
@@ -33,4 +33,4 @@ shouldBe("var i = 8; i >>= 1", "4");
 shouldBe("var i = 1; i >>= 2", "0");
 shouldBe("var i = -8; i >>= 24", "-1");
 shouldBe("var i = 8; i >>>= 2", "2");
-shouldBe("var i = -8; i >>>= 24", "255");
\ No newline at end of file
+shouldBe("var i = -8; i >>>= 24", "255");
index c8d3792..72d5e1c 100644 (file)
@@ -25,4 +25,4 @@ description("KDE JS Test");
 shouldBeTrue("Boolean(1) === true");
 shouldBeTrue("var s = String; s(1) === '1'");
 shouldBeTrue("n = Number; n(true) === 1");
-shouldBe("String(Array('a', 'b'        ))", "'a,b'");
\ No newline at end of file
+shouldBe("String(Array('a', 'b'        ))", "'a,b'");
index 043f052..391ab8e 100644 (file)
@@ -22,4 +22,4 @@
 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 description("KDE JS Test");
-// comment with linebreak
\ No newline at end of file
+// comment with linebreak
index 043f052..391ab8e 100644 (file)
@@ -22,4 +22,4 @@
 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 description("KDE JS Test");
-// comment with linebreak
\ No newline at end of file
+// comment with linebreak
index f75c98f..f9f0209 100644 (file)
@@ -46,4 +46,4 @@ shouldBe("val", "13");
 val = eval("14; function f() {}");
 shouldBe("val", "14");
 val = eval("15; var v = 0");
-shouldBe("val", "15");
\ No newline at end of file
+shouldBe("val", "15");
index ee9c0bf..beed207 100644 (file)
@@ -30,4 +30,4 @@ shouldBe("undefined ? 1 : 2", "2");
 var a = 1;
 if ( undefined )
   a = 2;
-shouldBe("/*var a=1;if (undefined) a = 2;*/ a", "1");
\ No newline at end of file
+shouldBe("/*var a=1;if (undefined) a = 2;*/ a", "1");
index 5ec9dda..75ddd50 100644 (file)
@@ -36,4 +36,4 @@ shouldBe("RangeError.length","1");
 shouldBe("ReferenceError.length","1");
 shouldBe("SyntaxError.length","1");
 shouldBe("TypeError.length","1");
-shouldBe("URIError.length","1");
\ No newline at end of file
+shouldBe("URIError.length","1");
index 316ce51..e0b082e 100644 (file)
@@ -29,4 +29,4 @@ try {
   v.toString();
 } catch (e) {
   debug("OK. Caught an exception.");
-}
\ No newline at end of file
+}
index 84bd67f..feab15b 100644 (file)
@@ -31,4 +31,4 @@ try {
   foo();
 } catch (e) {
   debug("OK. Caught an exception");
-}
\ No newline at end of file
+}
index 0acb308..8aeb0d0 100644 (file)
@@ -24,4 +24,4 @@
 description("KDE JS Test");
 shouldBe("a = 1; delete a;", "true");
 shouldBe("delete nonexistant;", "true");
-shouldBe("delete NaN", "false");
\ No newline at end of file
+shouldBe("delete NaN", "false");
index f09008a..6ab1596 100644 (file)
@@ -21,4 +21,4 @@
 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-description("KDE JS Test");
\ No newline at end of file
+description("KDE JS Test");
index c58cc12..54f374e 100644 (file)
@@ -99,4 +99,4 @@ function checkWithFunctions(encodeFunction, decodeFunction)
 }
 
 checkWithFunctions("encodeURI", "decodeURI");
-checkWithFunctions("encodeURIComponent", "decodeURIComponent");
\ No newline at end of file
+checkWithFunctions("encodeURIComponent", "decodeURIComponent");
index 7c4b5d4..03d05e4 100644 (file)
@@ -53,4 +53,4 @@ function lotto() {
   for (var j = 0; j < 1; j++)
     return eval('j');
 }
-shouldBe("lotto()", "0");
\ No newline at end of file
+shouldBe("lotto()", "0");
index b9b5cdb..71c9dc5 100644 (file)
@@ -25,4 +25,4 @@ description("KDE JS Test");
 shouldBe("(new Error()).message", "''");
 
 // the empty match isn't taken in account
-shouldBe("''.split(/.*/).length", "0");
\ No newline at end of file
+shouldBe("''.split(/.*/).length", "0");
index 71be4f7..9d6e753 100644 (file)
@@ -443,4 +443,4 @@ try {
 catch (e) {
 }
 shouldBe("set_inside_with_cantconverttoobject","4");
-// ### test case, sw
\ No newline at end of file
+// ### test case, sw
index f2c9872..73b7b57 100644 (file)
@@ -124,4 +124,4 @@ testThrow2();
 testReferenceError();
 testFunctionError();
 testMathFunctionError();
-testWhileAbortion();
\ No newline at end of file
+testWhileAbortion();
index b046b22..672aeca 100644 (file)
@@ -65,4 +65,4 @@ function test() {
   }
 }
 
-test();
\ No newline at end of file
+test();
index de13b70..294e23a 100644 (file)
@@ -114,4 +114,4 @@ shouldBe("Date.prototype.toGMTString.__proto__","Function.prototype");
 shouldBe("RegExp.prototype.exec.__proto__","Function.prototype");
 shouldBe("RegExp.prototype.test.__proto__","Function.prototype");
 shouldBe("RegExp.prototype.toString.__proto__","Function.prototype");
-shouldBe("Error.prototype.toString.__proto__","Function.prototype");
\ No newline at end of file
+shouldBe("Error.prototype.toString.__proto__","Function.prototype");
index 7004be0..3f76cc1 100644 (file)
@@ -76,4 +76,4 @@ list = "";
 for (var a = [1,2,3], length = a.length, i = 0; i < length; i++) {
   list += a[i];
 }
-shouldBe("list", "'123'");
\ No newline at end of file
+shouldBe("list", "'123'");
index 2cf0a0f..e20d83a 100644 (file)
@@ -22,4 +22,4 @@
 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 description("KDE JS Test");
-<!-- HTML comment (not ECMA)
\ No newline at end of file
+<!-- HTML comment (not ECMA)
index 4d23f3b..314493f 100644 (file)
@@ -22,4 +22,4 @@
 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 description("KDE JS Test");
---> end of HTML comment (not ECMA)
\ No newline at end of file
+--> end of HTML comment (not ECMA)
index 57cf8cd..ca6f054 100644 (file)
@@ -35,4 +35,4 @@ shouldBe("0xFF", "255");
 shouldBe("01", "1");
 shouldBe("010", "8");
 shouldBe("09", "9");
-shouldBe("019", "19");
\ No newline at end of file
+shouldBe("019", "19");
index 32641f8..14012b5 100644 (file)
@@ -71,4 +71,4 @@ function fnShouldNotThrow(f)
   } catch (e) {
     testFailed(f + " threw an exception " + e + " when no exception expected");
   }
-}
\ No newline at end of file
+}
index 3cbb1b2..4f73809 100644 (file)
@@ -128,4 +128,4 @@ shouldBe("list","''");
 Math.myprop=true; // adding a custom property to the math object (why not?)
 list=""
 for ( var i in Math ) { list += i + ','; }
-shouldBe("list","'myprop,'");
\ No newline at end of file
+shouldBe("list","'myprop,'");
index 9c20c55..5df7af0 100644 (file)
@@ -410,4 +410,4 @@ function MD5(entree)
     return s;
 }
 
-shouldBe("MD5('kde')", "'186cf28b76f2264e9fea8fcf91cb4f5d'");
\ No newline at end of file
+shouldBe("MD5('kde')", "'186cf28b76f2264e9fea8fcf91cb4f5d'");
index fa59170..1b9d4aa 100644 (file)
@@ -240,4 +240,4 @@ function hexMD5w(str) { return binl2hex(coreMD5(strw2binl(str))) }
 function b64MD5 (str) { return binl2b64(coreMD5( str2binl(str))) }
 function b64MD5w(str) { return binl2b64(coreMD5(strw2binl(str))) }
 /* Backward compatibility */
-function calcMD5(str) { return binl2hex(coreMD5( str2binl(str))) }
\ No newline at end of file
+function calcMD5(str) { return binl2hex(coreMD5( str2binl(str))) }
index 3b17cf6..8ffaf14 100644 (file)
@@ -98,4 +98,4 @@ shouldBe("myfunc.someproperty","4");
 shouldBe("myfunc.propertyIsEnumerable('length')","false");
 shouldBe("myfunc.propertyIsEnumerable('someproperty')","true");
 shouldBe("checkEnumerable(myfunc,'length')","false");
-shouldBe("checkEnumerable(myfunc,'someproperty')","true");
\ No newline at end of file
+shouldBe("checkEnumerable(myfunc,'someproperty')","true");
index 9814d8c..8b3ce98 100644 (file)
@@ -48,4 +48,4 @@ _error.toString = Object.prototype.toString;
 shouldBe("_error.toString()","\"[object Error]\"");
 var _function = new Function();
 _function.toString = Object.prototype.toString;
-shouldBe("_function.toString()","\"[object Function]\"");
\ No newline at end of file
+shouldBe("_function.toString()","\"[object Function]\"");
index 185ae01..38e658b 100644 (file)
@@ -501,4 +501,4 @@ shouldBeTrue("'a' in { a:1, b:2 }");
 // instanceof
 // Those 2 lines don't parse in Netscape...
 shouldBe("(new Boolean()) instanceof Boolean", "true");
-shouldBe("(new Boolean()) instanceof Number", "false");
\ No newline at end of file
+shouldBe("(new Boolean()) instanceof Number", "false");
index ca85e76..94467f1 100644 (file)
@@ -63,4 +63,4 @@ shouldThrow("var f\\u00F7;");
 shouldThrow("var \\u0030;");
 shouldThrow("var test = { }; test.i= 0; test.i\\u002b= 1; test.i;");
 
-shouldBe("var test = { }; test.i= 0; test.i\u002b= 1; test.i;", "1");
\ No newline at end of file
+shouldBe("var test = { }; test.i= 0; test.i\u002b= 1; test.i;", "1");
index 2936fa5..4eb888c 100644 (file)
@@ -57,4 +57,4 @@ shouldBe("foundFunctionPrototypeLength","false");
 
 var foundStringPrototypeLength = false;
 for (i in String.prototype) { if (i == "length") foundStringPrototypeLength = true; }
-shouldBe("foundStringPrototypeLength","false");
\ No newline at end of file
+shouldBe("foundStringPrototypeLength","false");
index f956d94..386d503 100644 (file)
@@ -30,4 +30,4 @@ shouldBe("Boolean.prototype.__proto__","Object.prototype");
 shouldBe("Number.prototype.__proto__","Object.prototype");
 shouldBe("Date.prototype.__proto__","Object.prototype");
 shouldBe("RegExp.prototype.__proto__","Object.prototype");
-shouldBe("Error.prototype.__proto__","Object.prototype");
\ No newline at end of file
+shouldBe("Error.prototype.__proto__","Object.prototype");
index cead049..e628d47 100644 (file)
@@ -55,4 +55,4 @@ function testForIn() {
 }
 
 testForIn();
-shouldBe("g", "'foo'"); //Before the eval, g was in outer scope, but not after!
\ No newline at end of file
+shouldBe("g", "'foo'"); //Before the eval, g was in outer scope, but not after!
index ecc6c32..cf8b2a9 100644 (file)
@@ -96,4 +96,4 @@ function testSwitch4(v) {
   return result;
 };
 
-shouldBe("testSwitch4(0)", "'ab'");
\ No newline at end of file
+shouldBe("testSwitch4(0)", "'ab'");
index 0bf4a9e..c72ca4e 100644 (file)
@@ -181,4 +181,4 @@ shouldBe("overrideVar", "1");
 
 var overrideVar2 = 1;
 var overrideVar2 = 2;
-shouldBe("overrideVar2", "2");
\ No newline at end of file
+shouldBe("overrideVar2", "2");
index f213b89..d954928 100644 (file)
@@ -50,4 +50,4 @@ shouldThrow("String.prototype.anchor.call(undefined)", '"TypeError: Type error"'
 shouldThrow("String.prototype.anchor.call(null)", '"TypeError: Type error"');
 
 // Check anchor.length.
-shouldBe("String.prototype.anchor.length", "1");
\ No newline at end of file
+shouldBe("String.prototype.anchor.length", "1");
index 67f4ef2..17ca62f 100644 (file)
@@ -50,4 +50,4 @@ shouldThrow("String.prototype.fontcolor.call(undefined)", '"TypeError: Type erro
 shouldThrow("String.prototype.fontcolor.call(null)", '"TypeError: Type error"');
 
 // Check fontcolor.length.
-shouldBe("String.prototype.fontcolor.length", "1");
\ No newline at end of file
+shouldBe("String.prototype.fontcolor.length", "1");
index e103e5e..b3b48c5 100644 (file)
@@ -53,4 +53,4 @@ shouldThrow("String.prototype.fontsize.call(undefined)", '"TypeError: Type error
 shouldThrow("String.prototype.fontsize.call(null)", '"TypeError: Type error"');
 
 // Check fontsize.length.
-shouldBe("String.prototype.fontsize.length", "1");
\ No newline at end of file
+shouldBe("String.prototype.fontsize.length", "1");
index 8b96915..873e7af 100644 (file)
@@ -53,4 +53,4 @@ shouldThrow("String.prototype.link.call(undefined)", '"TypeError: Type error"');
 shouldThrow("String.prototype.link.call(null)", '"TypeError: Type error"');
 
 // Check link.length.
-shouldBe("String.prototype.link.length", "1");
\ No newline at end of file
+shouldBe("String.prototype.link.length", "1");
index 2acb3d1..6280f41 100644 (file)
@@ -91,4 +91,4 @@ description("Test the conversion performed by the function Number.prototype.toSt
         shouldBeEqualToString('Number.prototype.toString.call(' + number + ', 36)', stringBase36);
         shouldBeEqualToString('Number.prototype.toString.call(new Number(' + number + '), 36)', stringBase36);
     }
-    successfullyParsed = true;
\ No newline at end of file
+    successfullyParsed = true;
index 3d980ce..d4c46f2 100644 (file)
@@ -107,4 +107,3 @@ shouldBe("regex23.exec('ax')", "null");
 
 var regex24 = /(?=a|b?)c/;
 shouldBe("regex24.exec('x')", "null");
-
index 9d35245..552d82e 100644 (file)
@@ -29,4 +29,3 @@ shouldBeTrue("re === RegExp(re)");
 shouldBeTrue("re !== new RegExp(re)");
 shouldThrow("re === RegExp(re,'i')");
 shouldThrow("re !== new RegExp(re,'i')");
-
index 2069637..883c4aa 100644 (file)
@@ -157,4 +157,3 @@ shouldBe("regexp12.exec('first\\nblah2\\nblah3')", "['blah3']");
 
 var regexp13 = /.*\n\d+.*/;
 shouldBe("regexp13.exec('abc\\n123')", "['abc\\n123']");
-
index 57a2830..4d7a141 100644 (file)
@@ -274,4 +274,3 @@ var regexp58 = /a|b(?:[^b])*?c/;
 shouldBe("regexp58.exec('badbc')", "['a']");
 var regexp59 = /(X(?:.(?!X))*?Y)|(Y(?:.(?!Y))*?Z)/g;
 shouldBe("'Y aaa X Match1 Y aaa Y Match2 Z'.match(regexp59)", "['X Match1 Y','Y Match2 Z']");
-
index f891af6..1c798d1 100644 (file)
@@ -70,4 +70,3 @@ for (var i = 0; i < 100; ++i) {
     shouldBe("foo(r)", "113");
     shouldBe("foo(s)", "182");
 }
-
index 13a7c5d..07afa16 100644 (file)
@@ -45,4 +45,3 @@ for (var i = 0; i < 100; ++i) {
     shouldBe("foo(r)", "113");
     shouldBe("foo(s)", "182");
 }
-
index 8453206..20c70c2 100644 (file)
@@ -34,4 +34,3 @@ this.__defineSetter__(42, function(value) {
 this[42] = "foo";
 
 shouldBe("thingy", "\"foo\"");
-
index 208fc91..faf2bfb 100644 (file)
@@ -31,4 +31,3 @@ function foo(array, i) {
 
 for (var i = 0; i < 100; ++i)
     shouldBe("foo([, 1.5], 0)", "void 0");
-
index a2430db..f345c8f 100644 (file)
@@ -69,4 +69,3 @@ for (var i in tests) {
     shouldBe('testInOperator(' + i + ')', tests[i][2]);
     shouldBe('testForEachFunction(' + i + ')', tests[i][2]);
 }
-
index 6e18de0..c91f1c1 100644 (file)
@@ -272,4 +272,3 @@ shouldBe('emptyStr.match(re34)', '[""]');
 shouldBe('s1.match(re34)', '[""]');
 shouldBe('s2.match(re34)', '[""]');
 shouldBe('s3.match(re34)', '[""]');
-
index def7158..b3900e7 100644 (file)
@@ -42,4 +42,3 @@ for (var i = 0; i < 100; ++i) {
     shouldBe("foo(42).length", "1");
     shouldBe("foo(42, 23)[1]", "23");
 }
-
index 8c737fa..0a89827 100644 (file)
@@ -62,4 +62,3 @@ try {
 } catch (e) {
     testPassed("Exception thrown and caught");
 }
-
index e644754..27f99d5 100644 (file)
@@ -92,4 +92,3 @@ for (var i = 0; i < testValues.length; i++) {
     shouldBe("trimLeft.call("+testValues[i]+")", "'"+eval(testValues[i])+"'");
     shouldBe("trimRight.call("+testValues[i]+")", "'"+eval(testValues[i])+"'");
 }
-
index baa4ae8..183245d 100644 (file)
@@ -78,4 +78,3 @@ try {
 }
 
 shouldBe("\"\" + events", "\"1:try,1:finally,2:finally,2:thingy,3:thingy,3:finally,4:thingy,4:finally,4:another thingy,5:hi,5:wat\"");
-
index 8b5f90f..e7b7c45 100644 (file)
@@ -25,4 +25,4 @@ description("This page tests if U+200C and U+200D are allowed as part of an iden
 
 shouldBe("var x\u200c = 42; x\u200c", "42");
 shouldBe("var x\u200d = 43; x\u200d", "43");
-shouldBe("var x\u200c\u200d = 44; x\u200c\u200d", "44");
\ No newline at end of file
+shouldBe("var x\u200c\u200d = 44; x\u200c\u200d", "44");
index c67abb7..dbce1de 100644 (file)
@@ -90,4 +90,3 @@ ConsArray.Cell = function(data, next) {
   this.data = data;
   this.next = next;
 };
-
index 14d4472..c03cf73 100644 (file)
@@ -81,4 +81,3 @@ def main():
 
 if __name__ == "__main__":
   main()
-
index 9f4834c..56eac8e 100755 (executable)
@@ -362,6 +362,9 @@ class SourceProcessor(SourceFileProcessor):
       else:
         print "%s has trailing whitespaces in line %s." % (name, linenumbers)
       result = False
+    if not contents.endswith('\n') or contents.endswith('\n\n'):
+      print "%s does not end with a single new line." % name
+      result = False
     # Check two empty lines between declarations.
     if name.endswith(".cc"):
       line = 0
index 437adb1..d2748fe 100644 (file)
@@ -46,4 +46,3 @@ class JUnitTestOutput:
 
   def FinishAndWrite(self, file):
     xml.ElementTree(self.root).write(file, "UTF-8")
-
index ff52541..187e647 100644 (file)
@@ -950,4 +950,3 @@ ArgumentsProcessor.prototype.printUsageAndExit = function() {
   }
   quit(2);
 };
-