Ensure DataCloneError is consistently thrown by IndexedDB methods

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


dbname = "clone-exception.html"

doFirstOpen():
indexedDB.open(dbname + '1')

onUpgradeNeeded():
Expecting exception from db.createObjectStore('store').put(NON_CLONEABLE, 0);
PASS Exception was thrown.
PASS code is 25
PASS ename is 'DataCloneError'
Exception message: DataCloneError: DOM Exception 25

doSecondOpen():
indexedDB.open(dbname + '2')

onUpgradeNeeded():
Expecting exception from db.createObjectStore('store').put(NON_CLONEABLE, 0);
PASS Exception was thrown.
PASS code is 25
PASS ename is 'DataCloneError'
Exception message: DataCloneError: DOM Exception 25

doThirdOpen():
indexedDB.open(dbname + '3')

onUpgradeNeeded():
Expecting exception from db.createObjectStore('store').put(NON_CLONEABLE, INVALID_KEY);
PASS Exception was thrown.
PASS code is 25
PASS ename is 'DataCloneError'
Exception message: DataCloneError: DOM Exception 25
PASS successfullyParsed is true

TEST COMPLETE

