Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: lib/runtime/dart/js.js

Issue 1316723003: implement null aware ops, fixes #249 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: format Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/runtime/dart/js.js
diff --git a/lib/runtime/dart/js.js b/lib/runtime/dart/js.js
index df934172693fb42e6e65f8334bb1cafeba39ab09..b9751cf9da0d1a821ee9fba5c2de55fd57736a81 100644
--- a/lib/runtime/dart/js.js
+++ b/lib/runtime/dart/js.js
@@ -75,6 +75,7 @@ dart_library.library('dart/js', null, /* Imports */[
dart.throw(new core.ArgumentError("property is not a String or num"));
}
this[_jsObject][property] = _convertToJS(value);
+ return value;
}
get hashCode() {
return 0;
@@ -212,6 +213,7 @@ dart_library.library('dart/js', null, /* Imports */[
this[_checkIndex](dart.as(index, core.int));
}
super.set(index, value);
+ return value;
}
get length() {
let len = this[_jsObject].length;

Powered by Google App Engine
This is Rietveld 408576698