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

Side by Side Diff: test/codegen/expect/dart/_js_helper.js

Issue 961513002: Flesh out dynamic invocation code (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Fix ++ and -- Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 var _js_helper; 1 var _js_helper;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class _Patch extends dart.Object { 4 class _Patch extends dart.Object {
5 _Patch() { 5 _Patch() {
6 } 6 }
7 } 7 }
8 let patch = new _Patch(); 8 let patch = new _Patch();
9 class InternalMap extends dart.Object { 9 class InternalMap extends dart.Object {
10 } 10 }
(...skipping 3687 matching lines...) Expand 10 before | Expand all | Expand 10 after
3698 // Function isJsArray: (dynamic) → bool 3698 // Function isJsArray: (dynamic) → bool
3699 function isJsArray(value) { 3699 function isJsArray(value) {
3700 return dart.is(value, _interceptors.JSArray); 3700 return dart.is(value, _interceptors.JSArray);
3701 } 3701 }
3702 // Function hasField: (dynamic, dynamic) → dynamic 3702 // Function hasField: (dynamic, dynamic) → dynamic
3703 function hasField(object, name) { 3703 function hasField(object, name) {
3704 return name in object; 3704 return name in object;
3705 } 3705 }
3706 // Function hasNoField: (dynamic, dynamic) → dynamic 3706 // Function hasNoField: (dynamic, dynamic) → dynamic
3707 function hasNoField(object, name) { 3707 function hasNoField(object, name) {
3708 return dart.throw_("Unimplemented PrefixExpression: !hasField(object, name)" ); 3708 return dart.dunary('!', hasField(object, name));
3709 } 3709 }
3710 // Function isJsFunction: (dynamic) → bool 3710 // Function isJsFunction: (dynamic) → bool
3711 function isJsFunction(o) { 3711 function isJsFunction(o) {
3712 return typeof o == "function"; 3712 return typeof o == "function";
3713 } 3713 }
3714 // Function isJsObject: (dynamic) → bool 3714 // Function isJsObject: (dynamic) → bool
3715 function isJsObject(o) { 3715 function isJsObject(o) {
3716 return typeof o == 'object'; 3716 return typeof o == 'object';
3717 } 3717 }
3718 // Function isIdentical: (dynamic, dynamic) → bool 3718 // Function isIdentical: (dynamic, dynamic) → bool
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
3948 exports.getIndex = getIndex; 3948 exports.getIndex = getIndex;
3949 exports.getLength = getLength; 3949 exports.getLength = getLength;
3950 exports.isJsArray = isJsArray; 3950 exports.isJsArray = isJsArray;
3951 exports.hasField = hasField; 3951 exports.hasField = hasField;
3952 exports.hasNoField = hasNoField; 3952 exports.hasNoField = hasNoField;
3953 exports.isJsFunction = isJsFunction; 3953 exports.isJsFunction = isJsFunction;
3954 exports.isJsObject = isJsObject; 3954 exports.isJsObject = isJsObject;
3955 exports.isIdentical = isIdentical; 3955 exports.isIdentical = isIdentical;
3956 exports.isNotIdentical = isNotIdentical; 3956 exports.isNotIdentical = isNotIdentical;
3957 })(_js_helper || (_js_helper = {})); 3957 })(_js_helper || (_js_helper = {}));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698