OLD | NEW |
1 define(['dart_sdk'], function(dart_sdk) { | 1 define(['dart_sdk'], function(dart_sdk) { |
2 'use strict'; | 2 'use strict'; |
3 const core = dart_sdk.core; | 3 const core = dart_sdk.core; |
4 const dart = dart_sdk.dart; | 4 const dart = dart_sdk.dart; |
5 const dartx = dart_sdk.dartx; | 5 const dartx = dart_sdk.dartx; |
6 const destructuring = Object.create(null); | 6 const destructuring = Object.create(null); |
7 const src__varargs = Object.create(null); | 7 const src__varargs = Object.create(null); |
8 let intAnddynamic__Todynamic = () => (intAnddynamic__Todynamic = dart.constFn(
dart.fnType(dart.dynamic, [core.int, dart.dynamic], [dart.dynamic])))(); | 8 let intAnddynamic__Todynamic = () => (intAnddynamic__Todynamic = dart.constFn(
dart.fnType(dart.dynamic, [core.int, dart.dynamic], [dart.dynamic])))(); |
9 let intAnddynamic__Todynamic$ = () => (intAnddynamic__Todynamic$ = dart.constF
n(dart.fnType(dart.dynamic, [core.int, dart.dynamic], {c: dart.dynamic})))(); | 9 let intAnddynamic__Todynamic$ = () => (intAnddynamic__Todynamic$ = dart.constF
n(dart.fnType(dart.dynamic, [core.int, dart.dynamic], {c: dart.dynamic})))(); |
10 let intAnddynamicTodynamic = () => (intAnddynamicTodynamic = dart.constFn(dart
.fnType(dart.dynamic, [core.int, dart.dynamic])))(); | 10 let intAnddynamicTodynamic = () => (intAnddynamicTodynamic = dart.constFn(dart
.fnType(dart.dynamic, [core.int, dart.dynamic])))(); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 }; | 64 }; |
65 dart.fn(destructuring.invalid_names2, __Todynamic()); | 65 dart.fn(destructuring.invalid_names2, __Todynamic()); |
66 destructuring.invalid_names3 = function({["let"]: let$ = null, ["function"]: f
unc = null, ["arguments"]: arguments$ = 2} = {}) { | 66 destructuring.invalid_names3 = function({["let"]: let$ = null, ["function"]: f
unc = null, ["arguments"]: arguments$ = 2} = {}) { |
67 destructuring.f(let$, func, arguments$); | 67 destructuring.f(let$, func, arguments$); |
68 }; | 68 }; |
69 dart.fn(destructuring.invalid_names3, __Todynamic$()); | 69 dart.fn(destructuring.invalid_names3, __Todynamic$()); |
70 destructuring.names_clashing_with_object_props = function({constructor = null,
valueOf = null, hasOwnProperty = 2} = Object.create(null)) { | 70 destructuring.names_clashing_with_object_props = function({constructor = null,
valueOf = null, hasOwnProperty = 2} = Object.create(null)) { |
71 destructuring.f(constructor, valueOf, hasOwnProperty); | 71 destructuring.f(constructor, valueOf, hasOwnProperty); |
72 }; | 72 }; |
73 dart.fn(destructuring.names_clashing_with_object_props, __Todynamic$0()); | 73 dart.fn(destructuring.names_clashing_with_object_props, __Todynamic$0()); |
74 src__varargs._Rest = class _Rest extends core.Object { | 74 src__varargs._Rest = class _Rest extends core.Object {}; |
75 new() { | 75 (src__varargs._Rest.new = function() { |
76 } | 76 }).prototype = src__varargs._Rest.prototype; |
77 }; | |
78 dart.defineLazy(src__varargs, { | 77 dart.defineLazy(src__varargs, { |
79 get rest() { | 78 get rest() { |
80 return dart.const(new src__varargs._Rest()); | 79 return dart.const(new src__varargs._Rest.new()); |
81 } | 80 } |
82 }); | 81 }); |
83 src__varargs.spread = function(args) { | 82 src__varargs.spread = function(args) { |
84 dart.throw(new core.StateError('The spread function cannot be called, ' + 'i
t should be compiled away.')); | 83 dart.throw(new core.StateError.new('The spread function cannot be called, '
+ 'it should be compiled away.')); |
85 }; | 84 }; |
86 dart.fn(src__varargs.spread, dynamicTodynamic()); | 85 dart.fn(src__varargs.spread, dynamicTodynamic()); |
87 dart.trackLibraries("destructuring", { | 86 dart.trackLibraries("destructuring", { |
88 "destructuring.dart": destructuring, | 87 "destructuring.dart": destructuring, |
89 "package:js/src/varargs.dart": src__varargs | 88 "package:js/src/varargs.dart": src__varargs |
90 }, null); | 89 }, null); |
91 // Exports: | 90 // Exports: |
92 return { | 91 return { |
93 destructuring: destructuring, | 92 destructuring: destructuring, |
94 src__varargs: src__varargs | 93 src__varargs: src__varargs |
95 }; | 94 }; |
96 }); | 95 }); |
OLD | NEW |