mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix switch statement indentation in FrameManager
This commit is contained in:
parent
773a09a8cf
commit
19e882f505
@ -176,16 +176,16 @@ class FrameManager extends EventEmitter {
|
|||||||
}
|
}
|
||||||
if (remoteObject.unserializableValue) {
|
if (remoteObject.unserializableValue) {
|
||||||
switch (remoteObject.unserializableValue) {
|
switch (remoteObject.unserializableValue) {
|
||||||
case '-0':
|
case '-0':
|
||||||
return -0;
|
return -0;
|
||||||
case 'NaN':
|
case 'NaN':
|
||||||
return NaN;
|
return NaN;
|
||||||
case 'Infinity':
|
case 'Infinity':
|
||||||
return Infinity;
|
return Infinity;
|
||||||
case '-Infinity':
|
case '-Infinity':
|
||||||
return -Infinity;
|
return -Infinity;
|
||||||
default:
|
default:
|
||||||
throw new Error('Unsupported unserializable value: ' + remoteObject.unserializableValue);
|
throw new Error('Unsupported unserializable value: ' + remoteObject.unserializableValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!remoteObject.objectId)
|
if (!remoteObject.objectId)
|
||||||
|
Loading…
Reference in New Issue
Block a user