porffor 0.2.0-c87ffeb → 0.2.0-c908b46

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.
@@ -0,0 +1,21 @@
1
+ // @porf --funsafe-no-unlikely-proto-checks --valtype=i32
2
+
3
+ // 20.3.3.2 Boolean.prototype.toString ()
4
+ // https://tc39.es/ecma262/#sec-boolean.prototype.tostring
5
+ export const __Boolean_prototype_toString = (_this: boolean) => {
6
+ // 1. Let b be ? ThisBooleanValue(this value).
7
+ // 2. If b is true, return "true"; else return "false".
8
+
9
+ let out: bytestring = '';
10
+ if (_this) out = 'true';
11
+ else out = 'false';
12
+
13
+ return out;
14
+ };
15
+
16
+ // 20.3.3.3 Boolean.prototype.valueOf ()
17
+ // https://tc39.es/ecma262/#sec-boolean.prototype.valueof
18
+ export const __Boolean_prototype_valueOf = (_this: boolean) => {
19
+ // 1. Return ? ThisBooleanValue(this value).
20
+ return _this;
21
+ };
@@ -1,4 +1,4 @@
1
- // @porf -funsafe-no-unlikely-proto-checks -valtype=i32
1
+ // @porf --funsafe-no-unlikely-proto-checks --valtype=i32
2
2
 
3
3
  export const __crypto_randomUUID = (): bytestring => {
4
4
  let bytes: bytestring = '................';