Branch: Tag:

2014-08-16

2014-08-16 21:23:31 by Martin Nilsson <nilsson@opera.com>

Returning UNDEFINED from cast() now produces an exception.

8604:   test_eval_error([[(string) ({0x80000000})]])   test_eq([[(string) ({'z', -0x80000000, '.'})]], "z\x80000000.")   test_eval_error([[(string) ({-0x80000001})]]) + test_eval_error([[(int)class { mixed cast() { return UNDEFINED; } }();]]) + test_eval_error([[(string)class { mixed cast() { return UNDEFINED; } }();]]) + test_eval_error([[(mapping)class { mixed cast() { return UNDEFINED; } }();]])      // testing @   test_equal(({1,2,3}),lambda(mixed ... x) { return x; }(@a()))