-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New JsAPI (sq#532). Tests updated, removed depricated tests.
- Loading branch information
Showing
19 changed files
with
649 additions
and
112 deletions.
There are no files selected for viewing
503 changes: 503 additions & 0 deletions
503
JSIL.Libraries/Includes/Bootstrap/Dynamic/Classes/JSIL.JSObjectHelper.js
Large diffs are not rendered by default.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
JSIL.Libraries/Includes/Bootstrap/Dynamic/Classes/JSIL.JsObject.JSFunction.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
(function JsFunction$Members() { | ||
var $, $thisType; | ||
var $T00 = function () { | ||
return ($T00 = JSIL.Memoize($asm00.JSIL.JsObject))(); | ||
}; | ||
|
||
function JsFunction__ctor() { | ||
$T00().prototype._ctor.call(this); | ||
}; | ||
|
||
JSIL.MakeType({ | ||
BaseType: $asm00.TypeRef("JSIL.JsObject"), | ||
Name: "JSIL.JsObject+JsFunction", | ||
IsPublic: false, | ||
IsReferenceType: true, | ||
MaximumConstructorArguments: 0, | ||
}, function ($ib) { | ||
$ = $ib; | ||
|
||
$.Method({ Static: false, Public: false }, ".ctor", | ||
JSIL.MethodSignature.Void, | ||
JsFunction__ctor | ||
); | ||
|
||
|
||
return function (newThisType) { $thisType = newThisType; }; | ||
}); | ||
|
||
})(); |
34 changes: 34 additions & 0 deletions
34
JSIL.Libraries/Includes/Bootstrap/Dynamic/Classes/JSIL.JsObject.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
(function JsObject$Members() { | ||
var $, $thisType; | ||
|
||
function JsObject__ctor() { | ||
}; | ||
|
||
function JsObject_Global(key) { | ||
return JSIL.GlobalNamespace[key]; | ||
}; | ||
|
||
JSIL.MakeType({ | ||
BaseType: $asm01.TypeRef("System.Object"), | ||
Name: "JSIL.JsObject", | ||
IsPublic: true, | ||
IsReferenceType: true, | ||
MaximumConstructorArguments: 0, | ||
}, function ($ib) { | ||
$ = $ib; | ||
|
||
$.Method({ Static: false, Public: false }, ".ctor", | ||
JSIL.MethodSignature.Void, | ||
JsObject__ctor | ||
); | ||
|
||
$.Method({ Static: true, Public: true }, "Global", | ||
new JSIL.MethodSignature($.Type, [$.String]), | ||
JsObject_Global | ||
); | ||
|
||
|
||
return function (newThisType) { $thisType = newThisType; }; | ||
}); | ||
|
||
})(); |
20 changes: 20 additions & 0 deletions
20
JSIL.Libraries/Includes/Bootstrap/Dynamic/Classes/JSIL.Services.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
(function Services$Members() { | ||
var $, $thisType; | ||
|
||
function Services_Get(serviceName, throwIfMissing) { | ||
return JSIL.Host.getService(serviceName, !throwIfMissing); | ||
}; | ||
|
||
JSIL.MakeStaticClass("JSIL.Services", true, [], function ($ib) { | ||
$ = $ib; | ||
|
||
$.Method({ Static: true, Public: true }, "Get", | ||
new JSIL.MethodSignature($asm00.TypeRef("JSIL.JsObject"), [$.String, $.Boolean]), | ||
Services_Get | ||
); | ||
|
||
|
||
return function (newThisType) { $thisType = newThisType; }; | ||
}); | ||
|
||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule Meta
updated
4 files
+12 −12 | Builtins.cs | |
+247 −0 | JSObject.cs | |
+1 −0 | Meta.csproj | |
+27 −182 | Verbatim.cs |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters