/* E5 Section 11.8.5: implement 'x < y' and then use negate and eval_left_first flags to get the rest.  */
DUK_INTERNAL duk_small_int_t duk_js_data_compare(const duk_uint8_t *buf1, const duk_uint8_t *buf2, duk_size_t len1, duk_size_t len2)
/* E5 Section 11.8.5: implement 'x < y' and then use negate and eval_left_first flags to get the rest.  */
DUK_INTERNAL duk_small_int_t duk_js_data_compare(const duk_uint8_t *buf1, const duk_uint8_t *buf2, duk_size_t len1, duk_size_t len2)
{
		duk_bool_t rc;
		rc = duk_js_equals_helper(thr,
		                          DUK_GET_TVAL_NEGIDX(thr, -2),
		                          DUK_GET_TVAL_NEGIDX(thr, -1),
		                          0);
		duk_pop_2_unsafe(thr);
		return rc;
	}
}