Warning test workaround for FF
- Note that warnings do work properly in practice in FFclosure/master
parent
446aa8d413
commit
0f4ce6acc1
|
@ -67,8 +67,14 @@ var common = require( './common' ),
|
||||||
*/
|
*/
|
||||||
( function testCanWarningMessageIsSetFromWrappedException()
|
( function testCanWarningMessageIsSetFromWrappedException()
|
||||||
{
|
{
|
||||||
var err = Error( 'oshit' ),
|
var err = Error( 'oshit' );
|
||||||
warning = Warning( err );
|
|
||||||
|
// bug in FF (tested with 8.0) where, without accessing the message property
|
||||||
|
// in this test before passing it to Warning, err.message === "" within the
|
||||||
|
// Warning ctor.
|
||||||
|
err.message;
|
||||||
|
|
||||||
|
var warning = Warning( err );
|
||||||
|
|
||||||
assert.equal( warning.message, err.message,
|
assert.equal( warning.message, err.message,
|
||||||
"Warning message should be taken from wrapped exception"
|
"Warning message should be taken from wrapped exception"
|
||||||
|
|
Loading…
Reference in New Issue