Skip to content

Commit d8cb7d6

Browse files
authored
Update JsNumberConstructor.cs
fix negative/positive inf place
1 parent e69120c commit d8cb7d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Project/Assets/Plugins/Jint/Native/JsNumberConstructor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ public JsNumberConstructor(IGlobal global)
1616
this.DefineOwnProperty("MAX_VALUE", New(Double.MaxValue));
1717
this.DefineOwnProperty("MIN_VALUE", New(Double.MinValue));
1818
this.DefineOwnProperty("NaN", New(Double.NaN));
19-
this.DefineOwnProperty("NEGATIVE_INFINITY", New(Double.PositiveInfinity));
20-
this.DefineOwnProperty("POSITIVE_INFINITY", New(Double.NegativeInfinity));
19+
this.DefineOwnProperty("POSITIVE_INFINITY", New(Double.PositiveInfinity));
20+
this.DefineOwnProperty("NEGATIVE_INFINITY", New(Double.NegativeInfinity));
2121
}
2222

2323
public override void InitPrototype(IGlobal global) {

0 commit comments

Comments
 (0)