Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /**
5 * Any variable that has not been assigned a value has the value undefined
6 *
7 * @path ch08/8.1/S8.1_A2_T2.js
8 * @description Function return undefined
9 */
11 // CHECK#1
12 function test1(x) {
13 return x;
14 }
16 if (!(test1() === void 0)) {
17 $ERROR('#1: function test1(x){return x} test1() === void 0. Actual: ' + (test1()));
18 }
20 // CHECK#2
21 function test2() {
22 }
24 if (!(test2() === void 0)) {
25 $ERROR('#2: function test2(){} test2() === void 0. Actual: ' + (test2()));
26 }