mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Regression test for bug 304376, restore String constructor
This commit is contained in:
parent
c7cdb9da47
commit
bbeaf64202
@ -44,6 +44,8 @@ printBugNumber (bug);
|
||||
printStatus (summary);
|
||||
|
||||
expect = 'String';
|
||||
|
||||
var saveString = String;
|
||||
|
||||
String = Array;
|
||||
|
||||
@ -52,4 +54,6 @@ actual = (new String()).constructor.name;
|
||||
// see if we can crash...
|
||||
"".join();
|
||||
|
||||
String = saveString;
|
||||
|
||||
reportCompare(expect, actual, summary);
|
||||
|
Loading…
Reference in New Issue
Block a user