Dokümantasyon
/
VM Obfuscation
/

Strict Mode Uyumluluğu

Strict Mode Uyumluluğu

Important

VM obfuscation, kodun strict mode'da çalışıp çalışmadığını derleme zamanında bilmek zorundadır. Kodunuz strict mode davranışına dayanıyorsa, bunu açıkça belirtmeniz gerekir.

Tüm kod için strict mode'u etkinleştirmek üzere dosyanızın en üstüne "use strict"; ekleyin:

"use strict";

function validateLicense(key) {
    // This function runs in strict mode
    return key.length === 32;
}

function processPayment(amount) {
    // This also runs in strict mode
    return amount * 1.1;
}