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

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

Issue 1173903003: fixes #216, JSNumber members (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: 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/core.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_interceptors.js
diff --git a/lib/runtime/dart/_interceptors.js b/lib/runtime/dart/_interceptors.js
index 615c98079d6bb676d45bfba708a880688a432e7f..278ba256eb7b23be5ddf6225272cf79215d906ef 100644
--- a/lib/runtime/dart/_interceptors.js
+++ b/lib/runtime/dart/_interceptors.js
@@ -487,6 +487,50 @@ dart.library('dart/_interceptors', null, /* Imports */[
let _shrReceiverPositive = Symbol('_shrReceiverPositive');
let _shrOtherPositive = Symbol('_shrOtherPositive');
let _shrBothPositive = Symbol('_shrBothPositive');
+ dart.defineExtensionNames([
+ 'compareTo',
+ 'isNegative',
+ 'isNaN',
+ 'isInfinite',
+ 'isFinite',
+ 'remainder',
+ 'abs',
+ 'sign',
+ 'toInt',
+ 'truncate',
+ 'ceil',
+ 'floor',
+ 'round',
+ 'ceilToDouble',
+ 'floorToDouble',
+ 'roundToDouble',
+ 'truncateToDouble',
+ 'clamp',
+ 'toDouble',
+ 'toStringAsFixed',
+ 'toStringAsExponential',
+ 'toStringAsPrecision',
+ 'toRadixString',
+ 'toString',
vsm 2015/06/10 20:04:20 Do we need to change the dispatch on this in dart_
Jennifer Messerly 2015/06/10 20:09:35 Yeah, was just chatting about that with Leaf ... i
+ 'hashCode',
+ 'unary-',
+ '+',
+ '-',
+ '/',
+ '*',
+ '%',
+ '~/',
+ '<<',
+ '>>',
+ '&',
+ '|',
+ '^',
+ '<',
+ '>',
+ '<=',
+ '>=',
+ 'runtimeType'
+ ]);
class JSNumber extends Interceptor {
JSNumber() {
super.Interceptor();
@@ -928,6 +972,9 @@ dart.library('dart/_interceptors', null, /* Imports */[
});
JSInt[dart.metadata] = () => [dart.const(new _js_helper.JsPeerInterface({name: 'Number'}))];
dart.registerExtension(dart.global.Number, JSInt);
+ dart.defineExtensionNames([
+ 'runtimeType'
+ ]);
class JSDouble extends JSNumber {
JSDouble() {
super.JSNumber();
« no previous file with comments | « no previous file | lib/runtime/dart/core.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698