Revision: 4550
Author: [email protected]
Date: Wed Jul 13 15:46:03 2011
Log: alert(0) in playground doesn't show 0
http://codereview.appspot.com/4697045
If you try to alert(0) in the playground, the alert window shows no value.
alert(NaN) also shows no value.
This looks like it's due to how GWT converts a JS object to a string.
This change makes alert use JS-native stringification, rather than
GWT's weirdo stringification.
[email protected]
http://code.google.com/p/google-caja/source/detail?r=4550
Modified:
/trunk/src/com/google/caja/demos/playground/client/ui/PlaygroundView.java
=======================================
---
/trunk/src/com/google/caja/demos/playground/client/ui/PlaygroundView.java
Tue Jun 14 14:37:34 2011
+++
/trunk/src/com/google/caja/demos/playground/client/ui/PlaygroundView.java
Wed Jul 13 15:46:03 2011
@@ -420,7 +420,7 @@
extraImports.alert = frameGroup.tame(frameGroup.markFunction(
function (message) {
[email protected]::alert(Ljava/lang/String;)
- (message);
+ ('' + message);
}));
frameGroup.makeES5Frame(div, {