@opencode/codemode 0.0.0-dev-20130 → 0.0.0-dev-20134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -150,6 +150,9 @@ export const errorGlobal = (type, ctx) => {
|
|
|
150
150
|
["toString", 0, (thisValue) => errorToString(receiver(Obj, thisValue, "Error.prototype.toString"))],
|
|
151
151
|
]);
|
|
152
152
|
methods(builtins, ctor, [["isError", 1, (_, args) => args[0] instanceof ErrorObj]]);
|
|
153
|
+
return ctor;
|
|
153
154
|
}
|
|
155
|
+
// Derived constructors extend Error itself, so its statics are inherited. The globals table creates Error first.
|
|
156
|
+
ctor.proto = get(builtins.Error, "constructor");
|
|
154
157
|
return ctor;
|
|
155
158
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/codemode",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-20134",
|
|
5
5
|
"description": "Effect-native confined code execution over schema-described tools",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|