Sha256: 03d42af46d5087d18e190851e346676beffdfc3bf7cd246c7040f27fbb438015

Contents?: true

Size: 800 Bytes

Versions: 67

Compression:

Stored size: 800 Bytes

Contents

issue_269_1: {
	options = {unsafe: true};
	input: {
		f(
			String(x),
			Number(x),
			Boolean(x),

			String(),
			Number(),
			Boolean()
		);
	}
	expect: {
		f(
			x + '', +x, !!x,
			'', 0, false
		);
	}
}

issue_269_dangers: {
	options = {unsafe: true};
	input: {
		f(
			String(x, x),
			Number(x, x),
			Boolean(x, x)
		);
	}
	expect: {
		f(String(x, x), Number(x, x), Boolean(x, x));
	}
}

issue_269_in_scope: {
	options = {unsafe: true};
	input: {
		var String, Number, Boolean;
		f(
			String(x),
			Number(x, x),
			Boolean(x)
		);
	}
	expect: {
		var String, Number, Boolean;
		f(String(x), Number(x, x), Boolean(x));
	}
}

strings_concat: {
	options = {unsafe: true};
	input: {
		f(
			String(x + 'str'),
			String('str' + x)
		);
	}
	expect: {
		f(
			x + 'str',
			'str' + x
		);
	}
}

Version data entries

67 entries across 65 versions & 3 rubygems

Version Path
smock-0.1.246 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js
smock-0.1.245 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js
smock-0.1.244 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js
smock-0.1.243 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js
smock-0.1.242 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js
smock-0.1.241 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js
smock-0.1.240 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js
smock-0.1.239 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js
smock-0.1.2 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js
smock-0.1.1 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js
smock-0.1.238 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js
smock-0.1.237 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js
smock-0.1.236 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js
smock-0.1.235 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js
smock-0.1.234 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js
smock-0.1.233 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js
smock-0.1.232 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js
smock-0.1.231 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js
smock-0.1.230 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js
smock-0.1.229 node_modules/webpack/node_modules/uglify-js/test/compress/issue-269.js