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

Unified Diff: lib/runtime/_operations.js

Issue 1200233004: fixes #168, dart:js implementation with a test (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: fix error (window not defined) Created 5 years, 6 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
« no previous file with comments | « no previous file | lib/runtime/dart/_foreign_helper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/_operations.js
diff --git a/lib/runtime/_operations.js b/lib/runtime/_operations.js
index cf5caedec604be5dbf10f1df33af88d40e52c2f3..6f9294edfe6a23ecfbcd9e8454f66cec48ac1458 100644
--- a/lib/runtime/_operations.js
+++ b/lib/runtime/_operations.js
@@ -28,7 +28,7 @@ dart_library.library('dart_runtime/_operations', null, /* Imports */[
const slice = [].slice;
function _canonicalFieldName(obj, name, args, displayName) {
- name = classes.canonicalMember(obj, name)
+ name = classes.canonicalMember(obj, name);
if (name) return name;
// TODO(jmesserly): in the future we might have types that "overlay" Dart
// methods while also exposing the full native API, e.g. dart:html vs
@@ -112,7 +112,7 @@ dart_library.library('dart_runtime/_operations', null, /* Imports */[
if (!(f instanceof Function)) {
// We're not a function (and hence not a method either)
// Grab the `call` method if it's not a function.
- if (f !== null) {
+ if (f != null) {
ftype = classes.getMethodType(f, 'call');
f = f.call;
}
« no previous file with comments | « no previous file | lib/runtime/dart/_foreign_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698