mirror of
https://github.com/robertkrimen/otto
synced 2025-09-28 18:45:22 +08:00
6 lines
152 B
Go
6 lines
152 B
Go
package otto
|
|
|
|
func (runtime *_runtime) newNumberObject(value Value) *_object {
|
|
return runtime.newPrimitiveObject("Number", toValue(toNumber(value)))
|
|
}
|