File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ Zone.prototype.name;
2727
2828Zone . assertZonePatched = function ( ) { } ;
2929
30+ Zone . __symbol__ = function ( name ) { } ;
31+
32+ Zone . __load_patch = function ( name , fn ) { } ;
33+
3034/**
3135 * @type {!Zone } Returns the current [Zone]. Returns the current zone. The only way to change
3236 * the current zone is by invoking a run() method, which will update the current zone for the
Original file line number Diff line number Diff line change @@ -309,10 +309,15 @@ interface ZoneType {
309309 */
310310 root : Zone ;
311311
312- /** @internal */
312+ /**
313+ * load patch for specified native module, allow user to
314+ * define their own patch, user can use this API after loading zone.js
315+ */
313316 __load_patch ( name : string , fn : _PatchFn ) : void ;
314317
315- /** Was @ internal but this prevents compiling tests as separate unit */
318+ /**
319+ * Zone symbol API to generate a string with __zone_symbol__ prefix
320+ */
316321 __symbol__ ( name : string ) : string ;
317322}
318323
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ const testClosureFunction = () => {
5252 }
5353 } ;
5454
55+ Zone . __load_patch ( 'test_closure_load_patch' , function ( ) { } ) ;
56+ Zone . __symbol__ ( 'test_symbol' ) ;
57+
5558 const testZone : Zone = Zone . current . fork ( testZoneSpec ) ;
5659 testZone . runGuarded ( ( ) => {
5760 testZone . run ( ( ) => {
You can’t perform that action at this time.
0 commit comments