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

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

Issue 1633003002: Add --modules=node support (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: merged master Created 4 years, 11 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 | « .travis.yml ('k') | lib/runtime/dart/_js_mirrors.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_debugger.js
diff --git a/lib/runtime/dart/_debugger.js b/lib/runtime/dart/_debugger.js
index 4e541ef64a5d9b635e635977aef5ff0857e29a0d..972dfb5598257d3401f95d3f6730a542c3c3f03c 100644
--- a/lib/runtime/dart/_debugger.js
+++ b/lib/runtime/dart/_debugger.js
@@ -13,14 +13,14 @@ dart_library.library('dart/_debugger', null, /* Imports */[
},
set _devtoolsFormatter(_) {}
});
- function typeof$(object) {
+ function _typeof(object) {
return typeof object;
}
- dart.fn(typeof$, core.String, [dart.dynamic]);
- function instanceof$(object, clazz) {
+ dart.fn(_typeof, core.String, [dart.dynamic]);
+ function _instanceof(object, clazz) {
return object instanceof clazz;
}
- dart.fn(instanceof$, core.bool, [dart.dynamic, dart.dynamic]);
+ dart.fn(_instanceof, core.bool, [dart.dynamic, dart.dynamic]);
function getOwnPropertyNames(object) {
return dart.as(dart.list(Object.getOwnPropertyNames(object), core.String), core.List$(core.String));
}
@@ -45,14 +45,14 @@ dart_library.library('dart/_debugger', null, /* Imports */[
names: ['getProperty', 'setProperty']
});
function isRegularDartObject(object) {
- if (typeof$(object) == 'function') return false;
- return instanceof$(object, core.Object);
+ if (_typeof(object) == 'function') return false;
+ return _instanceof(object, core.Object);
}
dart.fn(isRegularDartObject, core.bool, [dart.dynamic]);
function getObjectTypeName(object) {
let realRuntimeType = dart.realRuntimeType(object);
if (realRuntimeType == null) {
- if (typeof$(object) == 'function') {
+ if (_typeof(object) == 'function') {
return '[[Raw JavaScript Function]]';
}
return '<Error getting type name>';
@@ -217,7 +217,7 @@ dart_library.library('dart/_debugger', null, /* Imports */[
let nameSpan = new JsonMLElement('span');
nameSpan.createTextChild(child.name != null ? dart.notNull(child.name) + ': ' : '');
nameSpan.setStyle('color: rgb(136, 19, 145);');
- if (typeof$(child.value) == 'object' || typeof$(child.value) == 'function') {
+ if (_typeof(child.value) == 'object' || _typeof(child.value) == 'function') {
nameSpan.addStyle("padding-left: 13px;");
li.appendChild(nameSpan);
let objectTag = li.createObjectTag(child.value);
@@ -354,7 +354,7 @@ dart_library.library('dart/_debugger', null, /* Imports */[
});
class FunctionFormatter extends Formatter {
accept(object) {
- if (typeof$(object) != 'function') return false;
+ if (_typeof(object) != 'function') return false;
return dart.realRuntimeType(object) != null;
}
hasChildren(object) {
@@ -537,8 +537,6 @@ dart_library.library('dart/_debugger', null, /* Imports */[
dart.fn(registerDevtoolsFormatter);
// Exports:
exports.skipDartConfig = skipDartConfig;
- exports.typeof = typeof$;
- exports.instanceof = instanceof$;
exports.getOwnPropertyNames = getOwnPropertyNames;
exports.getOwnPropertySymbols = getOwnPropertySymbols;
exports.JSNative = JSNative;
« no previous file with comments | « .travis.yml ('k') | lib/runtime/dart/_js_mirrors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698