mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
291 B
22 lines
291 B
|
|
/*===
|
|
3
|
|
===*/
|
|
|
|
var tmp = String.fromCharCode(3.4);
|
|
print(tmp.charCodeAt(0));
|
|
|
|
/*===
|
|
3
|
|
===*/
|
|
|
|
print(String.fromCharCode(3.4).charCodeAt(0));
|
|
|
|
/*===
|
|
3
|
|
===*/
|
|
|
|
/* This was broken at some point, and printed "3.4" */
|
|
function f(x) { return String.fromCharCode(x).charCodeAt(0); }
|
|
print(f(3.4));
|
|
|
|
|